Description of problem: After fedora upgrade f18->f19 -perm +mode has invalid behavior, while on f18 it was working ok. I know it is deprecated option, but anyway it shouldn't change it's behavior. It is better to remove it at all and make find return an error, but not make it work different way, in which case you could get some very bad unexpected result while using some scripts with this option - example OpenWrt build system. Version-Release number of selected component (if applicable): $ find --version find (GNU findutils) 4.5.11 How reproducible: 100% just need to run find with specified option Steps to Reproduce: 1. mkdir foo1; cd foo1; touch a_file; chmod 644 a_file; touch b_file; chmod 444 b_file; 2. run command "find . -type -f -perm /0200" 3. and compare results with "find . -type -f -perm +0200" Actual results: $ find . -type f -perm /0200 ./a_file $ find . -type f -perm +0200 ^^^^^^^^^^ no results Expected results: ./a_file Additional info: On fedora 18 which has find version 4.5.10 this was working as expected.
See also: http://savannah.gnu.org/bugs/?38474
Thank you for reporting the bug. There is an upstream fix available for this: http://git.savannah.gnu.org/cgit/findutils.git/commit/?id=90f0c5d2 http://git.savannah.gnu.org/cgit/findutils.git/commit/?id=3d13be56
The current upstream behavior is to return an error if the old syntax is used: > mkdir foo1; cd foo1; touch a_file; chmod 644 a_file; touch b_file; chmod 444 b_file > find . -type f -perm /0200 ./a_file > find . -type f -perm +0200 find: invalid mode ‘+0200’ > echo $? 1
fixed in findutils-4.5.11-2.fc20
findutils-4.5.11-2.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/findutils-4.5.11-2.fc19
Package findutils-4.5.11-2.fc19: * should fix your issue, * was pushed to the Fedora 19 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing findutils-4.5.11-2.fc19' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-12691/findutils-4.5.11-2.fc19 then log in and leave karma (feedback).
Tested findutils-4.5.11-2.fc19 - it return error - so it is ok.
Great, thanks for testing it!
findutils-4.5.11-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.