summaryrefslogtreecommitdiff
path: root/t/t1304-default-acl.sh
diff options
context:
space:
mode:
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>2011-10-14 17:44:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-10-14 18:41:28 (GMT)
commitac2604cf5fb9fcf538289a470ecbe345f7f0c220 (patch)
treecf30da0429163fa0751131c73149991b1e870ba3 /t/t1304-default-acl.sh
parent703f05ad5835cff92b12c29aecf8d724c8c847e2 (diff)
downloadgit-ac2604cf5fb9fcf538289a470ecbe345f7f0c220.zip
git-ac2604cf5fb9fcf538289a470ecbe345f7f0c220.tar.gz
git-ac2604cf5fb9fcf538289a470ecbe345f7f0c220.tar.bz2
t1304: fall back to $USER if $LOGNAME is not defined
For some reason $LOGNAME is not set anymore for me after an upgrade from Ubuntu 11.04 to 11.10. Use $USER in such a case. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1304-default-acl.sh')
-rwxr-xr-xt/t1304-default-acl.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/t1304-default-acl.sh b/t/t1304-default-acl.sh
index b5d89a2..2b962cf 100755
--- a/t/t1304-default-acl.sh
+++ b/t/t1304-default-acl.sh
@@ -25,6 +25,11 @@ else
test_set_prereq SETFACL
fi
+if test -z "$LOGNAME"
+then
+ LOGNAME=$USER
+fi
+
check_perms_and_acl () {
test -r "$1" &&
getfacl "$1" > actual &&