Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added a new function: check_perms().
[rsync/rsync.git]
/
testsuite
/
rsync.fns
diff --git
a/testsuite/rsync.fns
b/testsuite/rsync.fns
index
80c218d
..
a1902b7
100644
(file)
--- a/
testsuite/rsync.fns
+++ b/
testsuite/rsync.fns
@@
-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"
}