summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/patches/patch-aa
diff options
context:
space:
mode:
authortron <tron>1998-11-15 18:04:25 +0000
committertron <tron>1998-11-15 18:04:25 +0000
commit96e96b860bbd8210c6361e931b5153bd4f3a31cb (patch)
treef6df80579d063558e8b4e00a92d6b5e6c585f56d /comms/mgetty+sendfax/patches/patch-aa
parente66b2c5aa72247b6f97aacae35d2fb2cf1e3295f (diff)
downloadpkgsrc-96e96b860bbd8210c6361e931b5153bd4f3a31cb.tar.gz
Initial import of FreeBSD "mgetty+sendfax" port:
Handle external logins, send and receive faxes.
Diffstat (limited to 'comms/mgetty+sendfax/patches/patch-aa')
-rw-r--r--comms/mgetty+sendfax/patches/patch-aa17
1 files changed, 17 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/patches/patch-aa b/comms/mgetty+sendfax/patches/patch-aa
new file mode 100644
index 00000000000..089b30176af
--- /dev/null
+++ b/comms/mgetty+sendfax/patches/patch-aa
@@ -0,0 +1,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