Move TZ="" assignment just before exec to not touch other time stuff

This commit is contained in:
Andrey A. Chernov 1998-05-15 16:08:52 +00:00
parent 2903069462
commit 46589cb624
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36068
2 changed files with 4 additions and 5 deletions

View File

@ -44,7 +44,7 @@ static char copyright[] =
static char sccsid[] = "@(#)ftpd.c 8.4 (Berkeley) 4/16/94";
#endif
static const char rcsid[] =
"$Id: ftpd.c,v 1.46 1998/04/28 03:37:23 dg Exp $";
"$Id: ftpd.c,v 1.47 1998/05/15 15:06:58 ache Exp $";
#endif /* not lint */
/*
@ -273,9 +273,6 @@ main(argc, argv, envp)
char *cp, line[LINE_MAX];
FILE *fd;
setenv("TZ", "", 1); /* since protocol have no way to tell offset */
tzset();
#ifdef OLD_SETPROCTITLE
/*
* Save start and extent of argv for setproctitle.

View File

@ -39,7 +39,7 @@
static char sccsid[] = "@(#)popen.c 8.3 (Berkeley) 4/6/94";
#endif
static const char rcsid[] =
"$Id: popen.c,v 1.10 1998/02/25 07:10:57 danny Exp $";
"$Id: popen.c,v 1.11 1998/04/27 10:51:26 dg Exp $";
#endif /* not lint */
#include <sys/types.h>
@ -145,6 +145,8 @@ ftpd_popen(program, type)
}
(void)close(pdes[1]);
}
/* since FTP protocol have no way to tell zone offset */
setenv("TZ", "", 1);
#ifdef INTERNAL_LS
if (strcmp(gargv[0], _PATH_LS) == 0) {
extern int optreset;