diff options
author | ken <ken@FreeBSD.org> | 2017-05-04 14:20:52 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2017-05-04 14:20:52 +0000 |
commit | e505b4e5e43aebae54f44fa61c5e86c35dd074d7 (patch) | |
tree | f481a48c096b69ebe97a0b9bcb48f95019c5a85e /etc/fbtab | |
parent | ba3530fec391ca3785f85d90c9c40ad3c0a95b69 (diff) | |
download | FreeBSD-src-e505b4e5e43aebae54f44fa61c5e86c35dd074d7.zip FreeBSD-src-e505b4e5e43aebae54f44fa61c5e86c35dd074d7.tar.gz |
MFC r317657:
Fix camcontrol timestamp setting and update the man page.
camcontrol timestamp -s would somtimes fail due to stack garbage. Zero out
the timestamp parameters to fix it.
Fix another nearby bug, and update the man page.
sbin/camcontrol/timestamp.c:
In set_timestamp(), bzero ts_p prior to creating the timestamp.
Previously stack garbage could cause some tape drives to reject the
timestamp.
In set_timestamp(), check for failures from strptime().
sbin/camcontrol/camcontrol.8:
Add the time argument to the -T option to camcontrol timestamp -s
in the long description.
Change the time/date format used in the camcontrol timestamp
example to RFC 2822 format. This fixes a time zone issue with the
original example by specifying the time zone as -0600. Otherwise,
the time zone seems to default to standard time in the current
locale, which makes the time, when reported back from the drive,
1 hour off from the intended setting. This also fixes a duplicate
day of the week ("Wednesday Wed") in the previous example.
Submitted by: Sam Klopsch
Sponsored by: Spectra Logic
Diffstat (limited to 'etc/fbtab')
0 files changed, 0 insertions, 0 deletions