find: Fix -printfEach -printf invocation created a memstream, then freed the underlyingbuffer without closing the stream, resulting in a segfault on exitwhen libc tried to flush all the streams.
find: Fix -printfEach -printf invocation created a memstream, then freed the underlyingbuffer without closing the stream, resulting in a segfault on exitwhen libc tried to flush all the streams. Drop the memstream, whichisn't really needed.Furthermore:* Change escape() to return char * instead of const char ** Simplify the implementation of %h* Fix %M, which printed an extra space* Implement %l correctly* Implement %Y and %y* Add tests for everything except %SFixes: 7b9c912c41f4Reviewed by: impDifferential Revision: https://reviews.freebsd.org/D51776
show more ...
Remove residual blank line at start of MakefileThis is a residual of the $FreeBSD$ removal.MFC After: 3 days (though I'll just run the command on the branches)Sponsored by: Netflix
Remove $FreeBSD$: one-line sh patternRemove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
find: Speed up tests by using touch -d instead of sleep for timestampsI have verified that the tests still detect the absence of the r327362 fix.
find(1): Fix -newer and -samefile to conform to POSIX[0]By default, or with the -P flag, find(1) should evaluate paths "physically."For symlinks, this means using the link itself instead of the ta
find(1): Fix -newer and -samefile to conform to POSIX[0]By default, or with the -P flag, find(1) should evaluate paths "physically."For symlinks, this means using the link itself instead of the target.Historically (since the import of BSD 4.4-lite from CSRG), find(1) hasfailed to refer to the link itself, at least for -newer and -samefile.[0]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/find.htmlPR: 222698Reported by: Harald Schmalzbauer <bugzilla.freebsd AT omnilan.de>Sponsored by: Dell EMC Isilon