diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-02-22 03:38:21 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-02-22 03:38:21 +0000 |
commit | 21b1ab0a76d051dda3400e99324573f6bffe4d03 (patch) | |
tree | 5ddedb7d805d40bd060c7892c7c7cb2aca0c0ef0 | |
parent | 201753ddc623a18f4ddd0d9a19391ea0471d4c49 (diff) | |
download | samba-21b1ab0a76d051dda3400e99324573f6bffe4d03.tar.gz samba-21b1ab0a76d051dda3400e99324573f6bffe4d03.tar.bz2 samba-21b1ab0a76d051dda3400e99324573f6bffe4d03.zip |
cope better with broken filer expectations
(This used to be commit 847de3b4adfb00a98032e478b2663d09e240380e)
-rw-r--r-- | source3/libsmb/clifile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 6264baf00e..3471ecdc67 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -202,8 +202,8 @@ int cli_nt_create(struct cli_state *cli, char *fname, uint32 DesiredAccess) len = clistr_push(cli, p, fname, -1, CLISTR_CONVERT); p += len; SSVAL(cli->outbuf,smb_ntcreate_NameLength, len); - SSVAL(p, 0, 0); - p += 2; + /* sigh. this copes with broken netapp filer behaviour */ + p += clistr_push(cli, p, "", -1, CLISTR_TERMINATE); cli_setup_bcc(cli, p); |