提交 ac2604cf 编写于 作者: R René Scharfe 提交者: Junio C Hamano

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: NRene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 703f05ad
......@@ -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 &&
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册