1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-24 21:01:20 +00:00
freebsd-ports/comms/mgetty+sendfax/files/patch-aa
1997-04-05 03:56:17 +00:00

28 lines
587 B
Plaintext

*** fax/faxspool.in.orig Sat Apr 5 02:58:15 1997
--- fax/faxspool.in Sat Apr 5 02:59:21 1997
***************
*** 299,309 ****
# user name (for authentification)
##########
! if user=`logname 2>/dev/null`
! then :
else
id=`id`
! user=`expr "$id" : "[^( ]*(\([^)]*\)"`
fi
test -z "$user" && user=$LOGNAME
test -z "$user" && user=$USER
--- 299,309 ----
# user name (for authentification)
##########
! if [ `id -u` = 0 ]; then
! user=root
else
id=`id`
! user=`logname`
fi
test -z "$user" && user=$LOGNAME
test -z "$user" && user=$USER