Bug 708886
| Summary: | shutdown says 'Failed to parse time specification' | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | ryo fujita <rfujita> |
| Component: | systemd | Assignee: | Michal Schmidt <mschmidt> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 15 | CC: | berrange, harald, johannbg, lpoetter, metherid, mschmidt, notting, plautrba, raytodd |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | systemd-26-8.fc15 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-15 01:23:13 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
*** Bug 715148 has been marked as a duplicate of this bug. *** Fixed upstream: http://cgit.freedesktop.org/systemd/commit/?id=1a63987788624a8819b94b199aa6748665f5e957 systemd-26-6.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/systemd-26-6.fc15 Package systemd-26-7.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-26-7.fc15' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/systemd-26-7.fc15 then log in and leave karma (feedback). Package systemd-26-8.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing systemd-26-8.fc15' as soon as you are able to, then reboot. Please go to the following url: https://admin.fedoraproject.org/updates/systemd-26-8.fc15 then log in and leave karma (feedback). systemd-26-8.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: After issuing 'shutdown -r 0', got a message 'Failed to parse time specification' Version-Release number of selected component (if applicable): sytemd-26-2.fc15 How reproducible: Issuing 'shutdown -r number' without plus sign. Steps to Reproduce: 1. Issuing a command with option described above. 2. 3. Actual results: Getting a message Expected results: Restart or Shutdown will start. Additional info: systemd-26/src/systemctl.c After 'if' directive in line 4775, lines are needed in order to parse t[] not including plus sign. 4769 static int parse_time_spec(const char *t, usec_t *_u) { 4770 assert(t); 4771 assert(_u); 4772 4773 if (streq(t, "now")) 4774 *_u = 0; 4775 else if (t[0] == '+') { 4776 uint64_t u; 4777 4778 if (safe_atou64(t + 1, &u) < 0) 4779 return -EINVAL; 4780 4781 *_u = now(CLOCK_REALTIME) + USEC_PER_MINUTE * u; 4782 } else { But shutdown(8) says a plus sign '+' is needed before number spec. Is it a specification of systemd?