diff options
author | Jeremy Allison <jra@samba.org> | 1998-06-01 18:50:27 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-06-01 18:50:27 +0000 |
commit | ffe91d6443f2a3e19977ed97167dd100a42a3e9a (patch) | |
tree | a9db7c7d7258a5a2dfbbc8debbc514d117aad467 /source3/client | |
parent | 3c116d2aa70d68bb4d2c536f03b83d6faf86f53b (diff) | |
download | samba-ffe91d6443f2a3e19977ed97167dd100a42a3e9a.tar.gz samba-ffe91d6443f2a3e19977ed97167dd100a42a3e9a.tar.xz samba-ffe91d6443f2a3e19977ed97167dd100a42a3e9a.zip |
clientutil.c: Don't core dump if no controlling terminal available for password.
passdb.c:
lib/rpc/include/rpc_misc.h: First cut at automatic uid/gid to rid mapping.
We can change this at a later date to make more bits available if neccessary.
Jeremy.
(This used to be commit 34f40474aba97118e1e80fe6259c686e46dc16b4)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/clientutil.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/client/clientutil.c b/source3/client/clientutil.c index a09832a68b..2da0fbb215 100644 --- a/source3/client/clientutil.c +++ b/source3/client/clientutil.c @@ -583,6 +583,9 @@ BOOL cli_send_login(char *inbuf,char *outbuf,BOOL start_session,BOOL use_setup, else pass = (char *)getpass("Password: "); + if(!pass) + pass = ""; + pstrcpy(smb_login_passwd, pass); /* use a blank username for the 2nd try with a blank password */ |