From 21b1ab0a76d051dda3400e99324573f6bffe4d03 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 22 Feb 2001 03:38:21 +0000 Subject: cope better with broken filer expectations (This used to be commit 847de3b4adfb00a98032e478b2663d09e240380e) --- source3/libsmb/clifile.c | 4 ++-- 1 file 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); -- cgit