summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sendmail/src/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sendmail/src/conf.c')
-rw-r--r--usr.sbin/sendmail/src/conf.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/usr.sbin/sendmail/src/conf.c b/usr.sbin/sendmail/src/conf.c
index 4ac109a..702203c 100644
--- a/usr.sbin/sendmail/src/conf.c
+++ b/usr.sbin/sendmail/src/conf.c
@@ -33,7 +33,7 @@
*/
#ifndef lint
-static char sccsid[] = "@(#)conf.c 8.89 (Berkeley) 4/18/94";
+static char sccsid[] = "@(#)conf.c 8.89.1.3 (Berkeley) 3/7/95";
#endif /* not lint */
# include "sendmail.h"
@@ -917,7 +917,7 @@ getla()
/* Non Apollo stuff removed by Don Lewis 11/15/93 */
#ifndef lint
-static char rcsid[] = "@(#)$Id: getloadavg.c,v 1.16 1991/06/21 12:51:15 paul Exp $";
+static char rcsid[] = "@(#)$Id: conf.c,v 1.1.1.1 1994/05/26 05:23:10 rgrimes Exp $";
#endif /* !lint */
#ifdef apollo
@@ -1402,8 +1402,8 @@ extern int optind, opterr;
int opterr = 1; /* if error message should be printed */
int optind = 1; /* index into parent argv vector */
#endif
-int optopt; /* character checked for validity */
-char *optarg; /* argument associated with option */
+int optopt = 0; /* character checked for validity */
+char *optarg = NULL; /* argument associated with option */
#define BADCH (int)'?'
#define EMSG ""
@@ -1543,6 +1543,9 @@ usershellok(shell)
register char *p;
extern char *getusershell();
+ if (shell == NULL || shell[0] == '\0')
+ return TRUE;
+
setusershell();
while ((p = getusershell()) != NULL)
if (strcmp(p, shell) == 0 || strcmp(p, WILDCARD_SHELL) == 0)
@@ -1553,6 +1556,9 @@ usershellok(shell)
register FILE *shellf;
char buf[MAXLINE];
+ if (shell == NULL || shell[0] == '\0')
+ return TRUE;
+
shellf = fopen(_PATH_SHELLS, "r");
if (shellf == NULL)
{
@@ -2191,6 +2197,8 @@ strtol(nptr, endptr, base)
#ifdef SOLARIS
+extern int h_errno;
+
struct hostent *
solaris_gethostbyname(name)
const char *name;
OpenPOWER on IntegriCloud