Skip to content

Commit

Permalink
t1304: fall back to $USER if $LOGNAME is not defined
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Oct 14, 2011
1 parent 703f05a commit ac2604c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions t/t1304-default-acl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit ac2604c

Please sign in to comment.