diff options
Diffstat (limited to 'comms/mgetty+sendfax/files/patch-aa')
-rw-r--r-- | comms/mgetty+sendfax/files/patch-aa | 44 |
1 files changed, 17 insertions, 27 deletions
diff --git a/comms/mgetty+sendfax/files/patch-aa b/comms/mgetty+sendfax/files/patch-aa index 0de9d3f812c3..089b30176afa 100644 --- a/comms/mgetty+sendfax/files/patch-aa +++ b/comms/mgetty+sendfax/files/patch-aa @@ -1,27 +1,17 @@ -*** 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 +--- 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 |