main.c (7800901e60d340b6af88e94a2149805dcfcaaf56) | main.c (d4660949aa62dd6a963f4913b7120b383cf473c4) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1998-2006 Sendmail, Inc. and its suppliers. | 2 * Copyright (c) 1998-2006, 2008 Sendmail, Inc. and its suppliers. |
3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 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. --- 19 unchanged lines hidden (view full) --- 30@(#) Copyright (c) 1988, 1993\n\ 31@(#) The Regents of the University of California. All rights reserved.\n\ 32@(#) Copyright 1996-2006 Sun Microsystems, Inc. All rights reserved.\n\ 33@(#) Use is subject to license terms.\n"; 34#endif /* ! lint */ 35 36#pragma ident "%Z%%M% %I% %E% SMI" 37 | 3 * All rights reserved. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 5 * Copyright (c) 1988, 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. --- 19 unchanged lines hidden (view full) --- 30@(#) Copyright (c) 1988, 1993\n\ 31@(#) The Regents of the University of California. All rights reserved.\n\ 32@(#) Copyright 1996-2006 Sun Microsystems, Inc. All rights reserved.\n\ 33@(#) Use is subject to license terms.\n"; 34#endif /* ! lint */ 35 36#pragma ident "%Z%%M% %I% %E% SMI" 37 |
38SM_RCSID("@(#)$Id: main.c,v 8.963 2007/06/29 20:07:37 ca Exp $") | 38SM_RCSID("@(#)$Id: main.c,v 8.967 2008/03/31 16:32:13 ca Exp $") |
39SM_IDSTR(i2, "%W% (Sun) %G%") 40 41#if NETINET || NETINET6 42# include <arpa/inet.h> 43#endif /* NETINET || NETINET6 */ 44 45/* for getcfname() */ 46#include <sendmail/pathnames.h> --- 259 unchanged lines hidden (view full) --- 306 307 SyslogPrefixLen = PIDLEN + (MAXQFNAME - 3) + SL_FUDGE + SLDLL; 308 309 /* reset status from syserr() calls for missing file descriptors */ 310 Errors = 0; 311 ExitStat = EX_OK; 312 313 SubmitMode = SUBMIT_UNKNOWN; | 39SM_IDSTR(i2, "%W% (Sun) %G%") 40 41#if NETINET || NETINET6 42# include <arpa/inet.h> 43#endif /* NETINET || NETINET6 */ 44 45/* for getcfname() */ 46#include <sendmail/pathnames.h> --- 259 unchanged lines hidden (view full) --- 306 307 SyslogPrefixLen = PIDLEN + (MAXQFNAME - 3) + SL_FUDGE + SLDLL; 308 309 /* reset status from syserr() calls for missing file descriptors */ 310 Errors = 0; 311 ExitStat = EX_OK; 312 313 SubmitMode = SUBMIT_UNKNOWN; |
314#if _FFR_LOCAL_DAEMON 315 LocalDaemon = false; 316#endif /* _FFR_LOCAL_DAEMON */ |
|
314#if XDEBUG 315 checkfd012("after openlog"); 316#endif /* XDEBUG */ 317 318 tTsetup(tTdvect, sizeof(tTdvect), "0-99.1,*_trace_*.1"); 319 320#ifdef NGROUPS_MAX 321 /* save initial group set for future checks */ --- 83 unchanged lines hidden (view full) --- 405 case MD_PRINT: 406 case MD_PRINTNQE: 407 case MD_HOSTSTAT: 408 case MD_PURGESTAT: 409 case MD_ARPAFTP: 410 OpMode = j; 411 break; 412 | 317#if XDEBUG 318 checkfd012("after openlog"); 319#endif /* XDEBUG */ 320 321 tTsetup(tTdvect, sizeof(tTdvect), "0-99.1,*_trace_*.1"); 322 323#ifdef NGROUPS_MAX 324 /* save initial group set for future checks */ --- 83 unchanged lines hidden (view full) --- 408 case MD_PRINT: 409 case MD_PRINTNQE: 410 case MD_HOSTSTAT: 411 case MD_PURGESTAT: 412 case MD_ARPAFTP: 413 OpMode = j; 414 break; 415 |
416#if _FFR_LOCAL_DAEMON 417 case MD_LOCAL: 418 OpMode = MD_DAEMON; 419 LocalDaemon = true; 420 break; 421#endif /* _FFR_LOCAL_DAEMON */ 422 |
|
413 case MD_FREEZE: 414 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 415 "Frozen configurations unsupported\n"); 416 return EX_USAGE; 417 418 default: 419 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 420 "Invalid operation mode %c\n", --- 4143 unchanged lines hidden --- | 423 case MD_FREEZE: 424 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 425 "Frozen configurations unsupported\n"); 426 return EX_USAGE; 427 428 default: 429 (void) sm_io_fprintf(smioout, SM_TIME_DEFAULT, 430 "Invalid operation mode %c\n", --- 4143 unchanged lines hidden --- |