openbsd-ports/comms/mgetty+sendfax/patches/patch-fax_faxspool_in
aanriot b4f474e085 update to 1.1.33. It's no longer broken, as the temporary files issue
has gone away.

from Antoine Jacoutot <ajacoutot@lphp.org>;
ok alek@ brad@
2005-09-25 18:18:23 +00:00

19 lines
525 B
Plaintext
Executable File

$OpenBSD: patch-fax_faxspool_in,v 1.1 2005/09/25 18:18:24 aanriot Exp $
--- fax/faxspool.in.orig Sun Feb 27 13:10:51 2005
+++ fax/faxspool.in Sun Sep 11 13:26:33 2005
@@ -401,11 +401,11 @@ fs_cvt_pdf()
# 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