summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/files/patch-aa
blob: 0de9d3f812c336c95c5ed2747c6307ef6f7dca9a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
*** 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