diff options
author | J William Piggott | 2017-03-04 17:04:10 +0100 |
---|---|---|
committer | J William Piggott | 2017-03-04 17:04:10 +0100 |
commit | 7a3000f7ba548cf7d74ac77cc63fe8de228a669e (patch) | |
tree | 9b53ef9b18a581dda3099ba66b4d3e8e3d50e2df /sys-utils/hwclock.8.in | |
parent | build-sys: add parse-date.y (diff) | |
download | kernel-qcow2-util-linux-7a3000f7ba548cf7d74ac77cc63fe8de228a669e.tar.gz kernel-qcow2-util-linux-7a3000f7ba548cf7d74ac77cc63fe8de228a669e.tar.xz kernel-qcow2-util-linux-7a3000f7ba548cf7d74ac77cc63fe8de228a669e.zip |
hwclock: use parse_date function
* hwclock.c: replace interpret_date_string() with parse_date().
Eliminates shell injection vulnerability from popen() date(1).
Removes system dependency on date(1).
Reduction in hwclock execution time.
Significant cleanup of hwclock.c code.
* Bug fix for "hwclock --predict --date 'bad_date'" printing:
hwclock: No usable set-to time. Cannot set clock.
The message now matches date(1) for an invalid --date argument.
Signed-off-by: J William Piggott <elseifthen@gmx.com>
Diffstat (limited to 'sys-utils/hwclock.8.in')
0 files changed, 0 insertions, 0 deletions