diff options
author | Andrew Tridgell <tridge@samba.org> | 1996-05-31 15:13:29 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1996-05-31 15:13:29 +0000 |
commit | 635b56f19c817527c52e9bbde31faa6a8a47777b (patch) | |
tree | 87584bdc0ee4e001d57880f33b7e0dce7bd493b2 /source/smbd/password.c | |
parent | 3e9750cc2713da7c3d4beb24217f94c033e2fee5 (diff) | |
download | samba-635b56f19c817527c52e9bbde31faa6a8a47777b.tar.gz samba-635b56f19c817527c52e9bbde31faa6a8a47777b.tar.xz samba-635b56f19c817527c52e9bbde31faa6a8a47777b.zip |
Lots of changes!
- add faq info on NT printer handling
- add "delete readonly" option to help rcs users
- add stuff to man pages on new printer options
- add "proxy name resolution" option
- add "command string" -c option to smbclient (thanks Ken)
- split time functions into time.c
- rearrange the quotas stuff a bit and fix some bugs
- complete rehash of the time handling code thanks to Paul Eggert
- fix nmblookup output a bit
- add plp print queue parsing from Bertrand Wallrich
Diffstat (limited to 'source/smbd/password.c')
-rw-r--r-- | source/smbd/password.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/smbd/password.c b/source/smbd/password.c index 6031daf5f16..b8111fc739a 100644 --- a/source/smbd/password.c +++ b/source/smbd/password.c @@ -287,15 +287,13 @@ static void update_protected_database( char *user, BOOL result) #ifdef OSF1_ENH_SEC struct pr_passwd *mypasswd; time_t starttime; - long tz; mypasswd = getprpwnam (user); starttime = time (NULL); - tz = mktime ( localtime ( &starttime ) ); if (result) { - mypasswd->ufld.fd_slogin = tz; + mypasswd->ufld.fd_slogin = starttime; mypasswd->ufld.fd_nlogins = 0; putprpwnam(user,mypasswd); @@ -304,7 +302,7 @@ static void update_protected_database( char *user, BOOL result) } else { - mypasswd->ufld.fd_ulogin = tz; + mypasswd->ufld.fd_ulogin = starttime; mypasswd->ufld.fd_nlogins = mypasswd->ufld.fd_nlogins + 1; if ( mypasswd->ufld.fd_max_tries != 0 && mypasswd->ufld.fd_nlogins > mypasswd->ufld.fd_max_tries ) { |