[2610] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-misc/323: krb5-send-pr tests for mailer presence with -r instead of -x

daemon@ATHENA.MIT.EDU (Paul Pomes)
Mon Dec 23 17:33:09 1996

Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, ppomes@Qualcomm.com
Date: Mon, 23 Dec 1996 14:32:48 -0800 (PST)
From: Paul Pomes <ppomes@Qualcomm.com>
Reply-To: ppomes@Qualcomm.com
To: krb5-bugs@MIT.EDU


>Number:         323
>Category:       krb5-misc
>Synopsis:       krb5-send-pr test for mailer fails for unreadable executeables
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Mon Dec 23 17:33:00 EST 1996
>Last-Modified:
>Originator:     Paul Pomes
>Organization:
QUALCOMM, Inc.
6455 Lusk Blvd
San Diego, CA  92121-2779
>Release:        1.0
>Environment:
	Sparc-20, Solaris 2.4
System: SunOS zelkova 5.4 Generic_101945-27 sun4m sparc


>Description:
	When /usr/lib/sendmail is installed mode 4511, it is unreadable by
	users.  The MAIL_AGENT selection code in src/util/send-pr/send-pr.sh
	uses -r (is the file readable) test instead of -x (is the file
	executeable).  It falls through to just "sendmail -oi -t" which
	fails if /usr/lib is not part of the path on a Solaris host.
>How-To-Repeat:
	Install sendmail as /usr/lib/sendmail, mode 4511.
	Run krb5-send-pr as a vanilla user and w.o. /usr/lib in $PATH.
	After the bug report has been collected, krb5-send-pr will exit
	with a 'mysterious mail failure' message.
>Fix:
	Change to -x to test for executeables.

*** send-pr.sh	1996/12/23 22:31:36	1.1
--- send-pr.sh	1996/12/23 22:31:49
***************
*** 56,64 ****
  # What mailer to use.  This must come after the config file, since it is
  # host-dependent.
  MAIL_AGENT="/usr/lib/sendmail -oi -t"
! if [ ! -r `echo $MAIL_AGENT|sed 's/ .*//'` ] ; then
!     ( [ -r /usr/lib/sendmail ] && MAIL_AGENT="/usr/lib/sendmail -oi -t" ) || \
!      ( [ -r /usr/sbin/sendmail ] && MAIL_AGENT="/usr/sbin/sendmail -oi -t " ) || \
       MAIL_AGENT="sendmail -oi -t "
  fi
  
--- 56,64 ----
  # What mailer to use.  This must come after the config file, since it is
  # host-dependent.
  MAIL_AGENT="/usr/lib/sendmail -oi -t"
! if [ ! -x `echo $MAIL_AGENT|sed 's/ .*//'` ] ; then
!     ( [ -x /usr/lib/sendmail ] && MAIL_AGENT="/usr/lib/sendmail -oi -t" ) || \
!      ( [ -x /usr/sbin/sendmail ] && MAIL_AGENT="/usr/sbin/sendmail -oi -t " ) || \
       MAIL_AGENT="sendmail -oi -t "
  fi
  
>Audit-Trail:
>Unformatted:

home help back first fref pref prev next nref lref last post