diff options
author | Günther Deschner <gd@samba.org> | 2010-11-29 17:07:02 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-11-29 17:07:02 +0100 |
commit | 118a79719c220ef521088e41ff37aff9da1ad03a (patch) | |
tree | 2c00fb46b3bfe4006543cb28f14cef32e26ebaba | |
parent | 800a76dec3ca87b5b98006ea2b4220b4d4b55e8f (diff) | |
download | samba-118a79719c220ef521088e41ff37aff9da1ad03a.tar.gz samba-118a79719c220ef521088e41ff37aff9da1ad03a.tar.bz2 samba-118a79719c220ef521088e41ff37aff9da1ad03a.zip |
s4-smbtorture: make driver upload/removal more robust against empty filenames.
Guenther
-rw-r--r-- | source4/torture/rpc/spoolss.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/rpc/spoolss.c b/source4/torture/rpc/spoolss.c index 25b1275fff..985ff33e09 100644 --- a/source4/torture/rpc/spoolss.c +++ b/source4/torture/rpc/spoolss.c @@ -8601,7 +8601,7 @@ static bool upload_printer_driver_file(struct torture_context *tctx, const char *local_name = talloc_asprintf(tctx, "%s/%s", d->local.driver_directory, file_name); const char *remote_name = talloc_asprintf(tctx, "%s\\%s", remote_dir, file_name); - if (!file_name) { + if (!file_name || strlen(file_name) == 0) { return true; } @@ -8733,7 +8733,7 @@ static bool remove_printer_driver_file(struct torture_context *tctx, const char *remote_name; const char *remote_dir = driver_directory_dir(d->remote.driver_directory); - if (!file_name) { + if (!file_name || strlen(file_name) == 0) { return true; } |