diff options
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/smbpasswd.c | 2 | ||||
-rw-r--r-- | source3/utils/status.c | 5 | ||||
-rw-r--r-- | source3/utils/testparm.c | 2 | ||||
-rw-r--r-- | source3/utils/testprns.c | 2 |
4 files changed, 9 insertions, 2 deletions
diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index 2b3a48a75b..1569a3cd88 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -232,6 +232,8 @@ int main(int argc, char **argv) char *pfile = SMB_PASSWD_FILE; char readbuf[16 * 1024]; + TimeInit(); + setup_logging(argv[0],True); charset_initialise(); diff --git a/source3/utils/status.c b/source3/utils/status.c index 1ae38528d0..2a2a5ca4c1 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -58,6 +58,7 @@ int main(int argc, char *argv[]) BOOL processes_only=False; int last_pid=0; + TimeInit(); setup_logging(argv[0],True); charset_initialise(); @@ -146,7 +147,7 @@ int main(int argc, char *argv[]) printf("%-10.10s %-8s %-8s %5d %-8s (%s) %s", crec.name,uidtoname(crec.uid),gidtoname(crec.gid),crec.pid, crec.machine,crec.addr, - asctime(LocalTime(&crec.start,GMT_TO_LOCAL))); + asctime(LocalTime(&crec.start))); } } fclose(f); @@ -217,7 +218,7 @@ int main(int argc, char *argv[]) case 1: printf("WRONLY "); break; case 2: printf("RDWR "); break; } - printf(" %s %s",fname,asctime(LocalTime(&t,GMT_TO_LOCAL))); + printf(" %s %s",fname,asctime(LocalTime(&t))); } closedir(dir); diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index e1f070a4b8..1eaaa10b3b 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -46,6 +46,8 @@ int main(int argc, char *argv[]) pstring configfile; int s; + TimeInit(); + setup_logging(argv[0],True); charset_initialise(); diff --git a/source3/utils/testprns.c b/source3/utils/testprns.c index 89c615898d..1474f0ecc6 100644 --- a/source3/utils/testprns.c +++ b/source3/utils/testprns.c @@ -43,6 +43,8 @@ int main(int argc, char *argv[]) { char *pszTemp; + TimeInit(); + setup_logging(argv[0],True); charset_initialise(); |