summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/patches/patch-aa
blob: 39291a1a5af28daa78f95ed1922f5f01dcfda9c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aa,v 1.2 1998/11/15 20:45:30 tron Exp $

--- 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