Module Name: src Committed By: kre Date: Tue Sep 17 11:30:11 UTC 2024
Modified Files: src/bin/date: date.c Log Message: PR lib/58674 (and I suspect, several others) Stop expecting strptime(3) in the tools build, it is an XSI function, and the tools builds do not set up the environment to expect XSI functions to be available. This means dropping support for the -f option in the tools date (which shouldn't matter, -f sets the format for the string used to set the time, which the tools date does not support), and open coding parsing for the -d option in the tools build. There should be no changes to the date(1) that is installed in /bin As a (minor) benefit, the tools -d support has become somewhat more flexible than the previous simple strptime() implementation allowed, and also does better error checking (no more Feb 30 etc). Note: no change to the usage message, if -f is passed to the tools date it will elicit a usage which says that -f is supported... (that's just laziness...) To generate a diff of this commit: cvs rdiff -u -r1.67 -r1.68 src/bin/date/date.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.