head 1.2; access; symbols OPENPKG_2_STABLE_MP:1.2 OPENPKG_E1_MP_HEAD:1.2 OPENPKG_E1_MP:1.2 OPENPKG_E1_MP_2_STABLE:1.2 OPENPKG_E1_FP:1.2 OPENPKG_2_STABLE_20061018:1.2 OPENPKG_2_STABLE:1.2.0.20 OPENPKG_2_STABLE_BP:1.2 OPENPKG_2_5_SOLID:1.2.0.18 OPENPKG_2_5_SOLID_BP:1.2 OPENPKG_2_4_RELEASE:1.2 OPENPKG_2_4_SOLID:1.2.0.16 OPENPKG_2_4_SOLID_BP:1.2 OPENPKG_2_3_RELEASE:1.2 OPENPKG_2_3_SOLID:1.2.0.14 OPENPKG_2_3_SOLID_BP:1.2 OPENPKG_2_2_RELEASE:1.2 OPENPKG_2_2_SOLID:1.2.0.12 OPENPKG_2_2_SOLID_BP:1.2 OPENPKG_2_1_RELEASE:1.2 OPENPKG_2_1_SOLID:1.2.0.10 OPENPKG_2_1_SOLID_BP:1.2 OPENPKG_2_0_RELEASE:1.2 OPENPKG_2_0_SOLID:1.2.0.8 OPENPKG_2_0_SOLID_BP:1.2 OPENPKG_1_3_RELEASE:1.2 OPENPKG_1_3_SOLID:1.2.0.6 OPENPKG_1_3_SOLID_BP:1.2 OPENPKG_1_2_SOLID:1.2.0.4 OPENPKG_1_2_SOLID_BP:1.2 OPENPKG_1_STABLE:1.2.0.2 OPENPKG_1_STABLE_BP:1.2 OPENPKG_0_0:1.1.1.1 OPENPKG:1.1.1; locks; strict; comment @# @; 1.2 date 2002.08.09.13.54.05; author ms; state dead; branches; next 1.1; 1.1 date 2001.09.18.09.48.29; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2001.09.18.09.48.29; author rse; state Exp; branches; next ; desc @@ 1.2 log @Add default config file for fsl, remove old patch for v8.11.X. @ text @--- sendmail/main.c.orig Fri Jul 20 02:53:00 2001 +++ sendmail/main.c Thu Aug 30 13:47:11 2001 @@@@ -149,6 +149,9 @@@@ extern int opterr; extern char *optarg; extern char **environ; +#ifdef PATCH_AUTONOMOUS + int autonomous = 0; +#endif /* ** Check to see if we reentered. @@@@ -277,10 +280,19 @@@@ # define OPTIONS "B:b:C:cd:e:F:f:Gh:IiL:M:mN:nO:o:p:q:R:r:sTtUV:vX:" #endif /* ! OPTIONS */ opterr = 0; +#ifdef PATCH_AUTONOMOUS + while ((j = getopt(argc, argv, "a" OPTIONS)) != -1) +#else while ((j = getopt(argc, argv, OPTIONS)) != -1) +#endif { switch (j) { +#ifdef PATCH_AUTONOMOUS + case 'a': + autonomous = 1; + break; +#endif case 'd': /* hack attack -- see if should use ANSI mode */ if (strcmp(optarg, "ANSI") == 0) @@@@ -537,7 +549,11 @@@@ /* hostname */ hp = myhostname(jbuf, sizeof jbuf); +#ifdef PATCH_AUTONOMOUS + if (jbuf[0] != '\0' && !autonomous) +#else if (jbuf[0] != '\0') +#endif { struct utsname utsname; @@@@ -582,7 +598,11 @@@@ setclass('k', p); setclass('w', p); } +#ifdef PATCH_AUTONOMOUS + if (hp != NULL && !autonomous) +#else if (hp != NULL) +#endif { for (av = hp->h_aliases; av != NULL && *av != NULL; av++) { @@@@ -673,10 +693,19 @@@@ OpMode = MD_PURGESTAT; optind = 1; +#ifdef PATCH_AUTONOMOUS + while ((j = getopt(argc, argv, "a" OPTIONS)) != -1) +#else while ((j = getopt(argc, argv, OPTIONS)) != -1) +#endif { switch (j) { +#ifdef PATCH_AUTONOMOUS + case 'a': + /* already set */ + break; +#endif case 'b': /* operations mode */ switch (j = *optarg) { @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @Import OpenPKG sources into CVS repository @ text @@