]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
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 80c218dd790aa3e71591eef87088c8b42332e3f4..a1902b70ddcef51e391d119029db103f86e091a2 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"
 }