pkgsrc/comms/mgetty+sendfax/patches/patch-aa

19 lines
453 B
Text

$NetBSD: patch-aa,v 1.3 2005/03/07 11:29:28 wiz Exp $
--- fax/faxspool.in.orig 2004-07-17 12:17:49.000000000 +0200
+++ fax/faxspool.in
@@ -389,11 +389,11 @@ fs_cvt_pdf()
# 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