]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
find: Allow '/' to be used with -perm for GNU compatibility
authorRicardo Branco <rbranco@suse.de>
Mon, 15 Jan 2024 18:35:27 +0000 (11:35 -0700)
committerWarner Losh <imp@FreeBSD.org>
Mon, 15 Jan 2024 18:47:24 +0000 (11:47 -0700)
commit2a121b97e9673ff37062c9fa026eee969940d2e2
tree74613e52f291ac8c8cb9017f4fcd815354a1d3e2
parentec13a838e6857585d3c3db70a0a67e337248ec28
find: Allow '/' to be used with -perm for GNU compatibility

In 2005, Gnu find deprecated '+' as the leading character for the -perm
argument, instead preferring '/' with the same meaning. Implement that
behavior here, and document it in the man page.

Reviewed by: imp, emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1060
usr.bin/find/find.1
usr.bin/find/function.c