SCCS-vsn: usr.sbin/sendmail/src/main.c 5.48
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)main.c 5.47 (Berkeley) %G%";
+static char sccsid[] = "@(#)main.c 5.48 (Berkeley) %G%";
#endif /* not lint */
#define _DEFINE
#endif /* not lint */
#define _DEFINE
if (TimeZoneSpec == NULL)
unsetenv("TZ");
else if (TimeZoneSpec[0] != '\0')
if (TimeZoneSpec == NULL)
unsetenv("TZ");
else if (TimeZoneSpec[0] != '\0')
- setenv("TZ", TimeZoneSpec);
+ {
+ p = xalloc(strlen(TimeZoneSpec) + 4);
+ (void) strcpy(p, "TZ=");
+ (void) strcat(p, TimeZoneSpec);
+ putenv(p);
+ }
#else
/* enforce use of kernel-supplied time zone information */
unsetenv("TZ");
#else
/* enforce use of kernel-supplied time zone information */
unsetenv("TZ");