Added a new function: check_perms().
authorWayne Davison <wayned@samba.org>
Fri, 3 Feb 2006 17:28:03 +0000 (17:28 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 3 Feb 2006 17:28:03 +0000 (17:28 +0000)
testsuite/rsync.fns

index 80c218d..a1902b7 100644 (file)
@@ -65,11 +65,14 @@ printmsg() {
     echo "$1"
 }
 
-
 rsync_ls_lR() {
     find "$@" -print | sort | sed 's/ /\\ /g' | xargs "$TOOLDIR/tls"
 }
 
+check_perms() {
+    "$TOOLDIR/tls" "$1" | grep "^-$2" >/dev/null
+}
+
 rsync_getgroups() { 
     "$TOOLDIR/getgroups"
 }