summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/files/patch-aa
blob: 089b30176afa252c1ffc371ac3c3fad3c67cb833 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- fax/faxspool.in.orig	Fri Aug  8 21:43:55 1997
+++ fax/faxspool.in	Mon Dec 29 22:31:59 1997
@@ -299,11 +299,11 @@
 # user name (for authentification)
 ##########
 
-if user=`logname 2>/dev/null`
-then :
+if [ `id -u` = 0 ]; then
+    user=root
 else
     id=`id`
-    user=`expr "$id" : "[^( ]*(\([^)]*\)"`
+    user=`logname`
 fi
 test -z "$user" && user=$LOGNAME
 test -z "$user" && user=$USER