1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/sbin/camcontrol
Kenneth D. Merry d618624cbd 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
MFC after:	3 days
Sponsored by:	Spectra Logic
2017-05-01 18:53:47 +00:00
..
attrib.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
camcontrol.8 Fix camcontrol timestamp setting and update the man page. 2017-05-01 18:53:47 +00:00
camcontrol.c Fix printing bits above first eight. 2017-03-22 13:53:21 +00:00
camcontrol.h Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
epc.c Misc Coverity fixes in camcontrol(8) 2017-01-20 21:21:41 +00:00
fwdownload.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
Makefile Add SCSI REPORT TIMESTAMP and SET TIMESTAMP support. 2016-12-01 22:20:27 +00:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00
modeedit.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
persist.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00
progress.c Use nitems() from sys/param.h. 2016-04-19 11:12:57 +00:00
progress.h
timestamp.c Fix camcontrol timestamp setting and update the man page. 2017-05-01 18:53:47 +00:00
util.c
zone.c Add task attribute support to camcontrol(8). 2017-02-17 20:04:22 +00:00