diff options
Diffstat (limited to 'comms/mgetty+sendfax/files/patch-fax_faxspool.in')
-rw-r--r-- | comms/mgetty+sendfax/files/patch-fax_faxspool.in | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/comms/mgetty+sendfax/files/patch-fax_faxspool.in b/comms/mgetty+sendfax/files/patch-fax_faxspool.in new file mode 100644 index 000000000000..dc10c2457132 --- /dev/null +++ b/comms/mgetty+sendfax/files/patch-fax_faxspool.in @@ -0,0 +1,17 @@ +--- fax/faxspool.in~ Sat Jul 9 14:25:15 2005 ++++ fax/faxspool.in Sat Jul 9 14:30:44 2005 +@@ -401,11 +401,11 @@ + + # user name (for fax header only! auth is done by faxq-helper via getuid()) + ########## +-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 |