diff options
author | Jeremy Allison <jra@samba.org> | 1998-10-21 16:58:34 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-10-21 16:58:34 +0000 |
commit | 6e3af45afe237790f1d7cd94ab2b22e1ca772157 (patch) | |
tree | c0870e0739564cff7c19e2a900d3c701e1ebb33a /source3/rpcclient | |
parent | ac9be4ddca99c5efae518a985b97fb1fb6374289 (diff) | |
download | samba-6e3af45afe237790f1d7cd94ab2b22e1ca772157.tar.gz samba-6e3af45afe237790f1d7cd94ab2b22e1ca772157.tar.bz2 samba-6e3af45afe237790f1d7cd94ab2b22e1ca772157.zip |
Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.
smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh !
smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles.
Jeremy.
(This used to be commit 0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_netlogon.c | 2 | ||||
-rw-r--r-- | source3/rpcclient/cmd_samr.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index d5ca2b2b1d..8e65e9a7b5 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -51,11 +51,13 @@ void cmd_netlogon_login_test(struct client_info *info) char *nt_password; unsigned char trust_passwd[16]; +#if 0 /* machine account passwords */ pstring new_mach_pwd; /* initialisation */ new_mach_pwd[0] = 0; +#endif if (!next_token(NULL, nt_user_name, NULL, sizeof(nt_user_name))) { diff --git a/source3/rpcclient/cmd_samr.c b/source3/rpcclient/cmd_samr.c index fa4c631899..f14c84d6b9 100644 --- a/source3/rpcclient/cmd_samr.c +++ b/source3/rpcclient/cmd_samr.c @@ -99,8 +99,8 @@ void cmd_sam_ntchange_pwd(struct client_info *info) /* establish a connection. */ res = res ? do_samr_chgpasswd_user(smb_cli, srv_name, smb_cli->user_name, - nt_newpass, (char*)nt_hshhash, - lm_newpass, (char*)lm_hshhash) : False; + nt_newpass, nt_hshhash, + lm_newpass, lm_hshhash) : False; /* close the session */ cli_nt_session_close(smb_cli); |