summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sendmail/smrsh/smrsh.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sendmail/smrsh/smrsh.c')
-rw-r--r--usr.sbin/sendmail/smrsh/smrsh.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/usr.sbin/sendmail/smrsh/smrsh.c b/usr.sbin/sendmail/smrsh/smrsh.c
index c3314e6..49201e9 100644
--- a/usr.sbin/sendmail/smrsh/smrsh.c
+++ b/usr.sbin/sendmail/smrsh/smrsh.c
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)smrsh.c 8.5 (Berkeley) 10/19/97";
+static char sccsid[] = "@(#)smrsh.c 8.4 (Berkeley) 11/11/95";
#endif /* not lint */
/*
@@ -58,8 +58,8 @@ static char sccsid[] = "@(#)smrsh.c 8.5 (Berkeley) 10/19/97";
** This is more restrictive than strictly necessary.
**
** To use this, edit /etc/sendmail.cf, search for ^Mprog, and
-** change P=/bin/sh to P=/usr/local/etc/smrsh, where this compiled
-** binary is installed /usr/local/etc/smrsh.
+** change P=/bin/sh to P=/usr/libexec/smrsh, where this compiled
+** binary is installed /usr/libexec/smrsh.
**
** This can be used on any version of sendmail.
**
@@ -76,11 +76,10 @@ static char sccsid[] = "@(#)smrsh.c 8.5 (Berkeley) 10/19/97";
#endif
#include <sysexits.h>
#include <syslog.h>
-#include <stdlib.h>
/* directory in which all commands must reside */
#ifndef CMDDIR
-# define CMDDIR "/usr/adm/sm.bin"
+# define CMDDIR "/usr/libexec/sm.bin"
#endif
/* characters disallowed in the shell "-c" argument */
@@ -88,7 +87,7 @@ static char sccsid[] = "@(#)smrsh.c 8.5 (Berkeley) 10/19/97";
/* default search path */
#ifndef PATH
-# define PATH "/bin:/usr/bin:/usr/ucb"
+# define PATH "/bin:/usr/bin"
#endif
main(argc, argv)
OpenPOWER on IntegriCloud