scripts: correct the usage of -perm in backend-cleanup.sh

extras/backend-cleanup.sh uses deprecated find -perm +xxx syntax:

  find [...] -perm +01000 [...]

This GNU extension syntax is deprecated and does not work in GNU
findutils 4.5.11 and later. Please change to find -perm /xxx instead.

The new syntax was introduced in 4.2.25 (October 2005) and should
therefore be available on any relevant system.

BUG: 1294223
Change-Id: Ice742957dd24f0ab4f70a8569dff6f2536e9ac1e
Reported-by: Andreas Metzler <ametzler@bebt.de>
Signed-off-by: Niels de Vos <ndevos@redhat.com>
Reviewed-on: http://review.gluster.org/13080
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com>
This commit is contained in:
Niels de Vos 2015-12-25 16:19:59 +01:00 committed by Kaleb KEITHLEY
parent 7d6e5dad15
commit 11f6ad26fe

View File

@ -17,7 +17,7 @@ export_directory="/export/glusterfs"
clean_dir()
{
# Clean the 'link' files on backend
find "${export_directory}" -type f -perm +01000 -exec rm -v '{}' \;
find "${export_directory}" -type f -perm /01000 -exec rm -v '{}' \;
}
main()