Skip to content

Commit ac2604c

Browse files
René Scharfegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 703f05a commit ac2604c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

t/t1304-default-acl.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ else
2525
test_set_prereq SETFACL
2626
fi
2727

28+
if test -z "$LOGNAME"
29+
then
30+
LOGNAME=$USER
31+
fi
32+
2833
check_perms_and_acl () {
2934
test -r "$1" &&
3035
getfacl "$1" > actual &&

0 commit comments

Comments
 (0)