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>

René Scharfe committed Oct 14, 2011 at 19:44 UTC ac2604cf5fb9fcf538289a470ecbe345f7f0c220
1 file changed +5
t/t1304-default-acl.sh
+5
@@ -25,6 +25,11 @@ else
25 test_set_prereq SETFACL
26 fi
27
28 +if test -z "$LOGNAME"
29 +then
30 + LOGNAME=$USER
31 +fi
32 +
33 check_perms_and_acl () {
34 test -r "$1" &&
35 getfacl "$1" > actual &&