smrsh.c (71348) | smrsh.c (73191) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * Copyright (c) 1993 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#ifndef lint 15static char copyright[] = | 3 * All rights reserved. 4 * Copyright (c) 1993 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * By using this file, you agree to the terms and conditions set 9 * forth in the LICENSE file which can be found at the top level of 10 * the sendmail distribution. 11 * 12 */ 13 14#ifndef lint 15static char copyright[] = |
16"@(#) Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.\n\ | 16"@(#) Copyright (c) 1998-2001 Sendmail, Inc. and its suppliers.\n\ |
17 All rights reserved.\n\ 18 Copyright (c) 1993 Eric P. Allman. All rights reserved.\n\ 19 Copyright (c) 1993\n\ 20 The Regents of the University of California. All rights reserved.\n"; 21#endif /* ! lint */ 22 23#ifndef lint | 17 All rights reserved.\n\ 18 Copyright (c) 1993 Eric P. Allman. All rights reserved.\n\ 19 Copyright (c) 1993\n\ 20 The Regents of the University of California. All rights reserved.\n"; 21#endif /* ! lint */ 22 23#ifndef lint |
24static char id[] = "@(#)$Id: smrsh.c,v 8.31.4.6 2000/10/09 20:37:16 gshapiro Exp $"; | 24static char id[] = "@(#)$Id: smrsh.c,v 8.31.4.8 2001/01/22 19:00:26 gshapiro Exp $"; |
25#endif /* ! lint */ 26 | 25#endif /* ! lint */ 26 |
27/* $FreeBSD: head/contrib/sendmail/smrsh/smrsh.c 71348 2001-01-21 22:21:43Z gshapiro $ */ | 27/* $FreeBSD: head/contrib/sendmail/smrsh/smrsh.c 73191 2001-02-28 00:22:47Z gshapiro $ */ |
28 29/* 30** SMRSH -- sendmail restricted shell 31** 32** This is a patch to get around the prog mailer bugs in most 33** versions of sendmail. 34** 35** Use this in place of /bin/sh in the "prog" mailer definition --- 37 unchanged lines hidden (view full) --- 73# define TRUE 1 74# define FALSE 0 75#endif /* ! TRUE */ 76 77/* directory in which all commands must reside */ 78#ifndef CMDDIR 79# if defined(HPUX10) || defined(HPUX11) || SOLARIS >= 20800 80# define CMDDIR "/var/adm/sm.bin" | 28 29/* 30** SMRSH -- sendmail restricted shell 31** 32** This is a patch to get around the prog mailer bugs in most 33** versions of sendmail. 34** 35** Use this in place of /bin/sh in the "prog" mailer definition --- 37 unchanged lines hidden (view full) --- 73# define TRUE 1 74# define FALSE 0 75#endif /* ! TRUE */ 76 77/* directory in which all commands must reside */ 78#ifndef CMDDIR 79# if defined(HPUX10) || defined(HPUX11) || SOLARIS >= 20800 80# define CMDDIR "/var/adm/sm.bin" |
81# else /* HPUX10 || HPUX11 || SOLARIS > 20800 */ | 81# else /* HPUX10 || HPUX11 || SOLARIS >= 20800 */ |
82# define CMDDIR "/usr/libexec/sm.bin" | 82# define CMDDIR "/usr/libexec/sm.bin" |
83# endif /* HPUX10 || HPUX11 || SOLARIS > 20800 */ | 83# endif /* HPUX10 || HPUX11 || SOLARIS >= 20800 */ |
84#endif /* ! CMDDIR */ 85 86/* characters disallowed in the shell "-c" argument */ 87#define SPECIALS "<|>^();&`$\r\n" 88 89/* default search path */ 90#ifndef PATH 91# define PATH "/bin:/usr/bin" --- 294 unchanged lines hidden --- | 84#endif /* ! CMDDIR */ 85 86/* characters disallowed in the shell "-c" argument */ 87#define SPECIALS "<|>^();&`$\r\n" 88 89/* default search path */ 90#ifndef PATH 91# define PATH "/bin:/usr/bin" --- 294 unchanged lines hidden --- |