diff options
author | Gerald Carter <jerry@samba.org> | 2005-09-27 19:18:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:04:47 -0500 |
commit | 39369c8041e0633e88c30e0c62530c2393ef80f6 (patch) | |
tree | 1e41f77a4c0ea4e548cfb44ebeef7398abffebd8 /source/client/smbspool.c | |
parent | fc311adc7964feef5bac85096727f54922d1186c (diff) | |
download | samba-39369c8041e0633e88c30e0c62530c2393ef80f6.tar.gz samba-39369c8041e0633e88c30e0c62530c2393ef80f6.tar.xz samba-39369c8041e0633e88c30e0c62530c2393ef80f6.zip |
r10554: * BUG 3057: assume x64 drivers are v3 drivers
* BUG 3087: allow smbspool to establisha geust connection
using a username with no password
Diffstat (limited to 'source/client/smbspool.c')
-rw-r--r-- | source/client/smbspool.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source/client/smbspool.c b/source/client/smbspool.c index 5d27fbe4c2b..1a3ac06c780 100644 --- a/source/client/smbspool.c +++ b/source/client/smbspool.c @@ -457,15 +457,15 @@ smb_connect(const char *workgroup, /* I - Workgroup */ get_myname(myname); - if ( (username) && ( *username ) && (password) && (*password) ) + /* See if we have a username first. This is for backwards compatible + behavior with 3.0.14a */ + + if ( username && *username ) { - /* - * User/password specified in the DEVICE_URI, use those credentials - * to connect to the server - */ cli = smb_complete_connection(myname, server, port, username, password, workgroup, share, 0 ); - if (cli ) { return cli; } + if (cli) + return cli; } /* |