[Fakeroot-commits] [SCM] Debian packaging of fakeroot branch, upstream, updated. 63fbf30376b81f2d8a540d36cd3ab223a15c406f
Kyle J. McKay
mackyle at gmail.com
Fri May 17 00:11:18 UTC 2013
The following commit has been merged in the upstream branch:
commit 90910ce20caa067973d7977a35b29c098bd4443e
Author: Kyle J. McKay <mackyle at gmail.com>
Date: Sat Nov 3 21:42:11 2012 -0700
Make t.xattr silently succeed on platforms without setcap/getcap
diff --git a/test/t.xattr b/test/t.xattr
index a134e0a..39e0dd0 100755
--- a/test/t.xattr
+++ b/test/t.xattr
@@ -1,6 +1,25 @@
#!/bin/sh
. ./defs || exit 1
+HAVE_SETCAP=1
+SYSNAME="`uname -s 2>/dev/null`"
+
+case x"$SYSNAME" in
+ x*kFreeBSD*)
+ ;;
+ x"Darwin")
+ HAVE_SETCAP=
+ ;;
+ x*BSD*)
+ HAVE_SETCAP=
+ ;;
+esac
+
+if test z"$HAVE_SETCAP" != z"1"; then
+ # Succeed on systems without the setcap/getcap utilities
+ exit 0
+fi
+
mkdir $tmp
touch $tmp/foo
# fakeroot mangles spaces unless the getopt utility is the GNU version
--
Debian packaging of fakeroot
More information about the Fakeroot-commits
mailing list