diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-05 15:47:19 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-05 15:53:26 +0100 |
commit | 01891782fd247c57f0ecd79ed9adf618108c5fac (patch) | |
tree | 83f8892f91d886558ae6e99c3bcafb95f8684f2f | |
parent | 59612beea63f5017d0e3c0370ce1e6ad22275901 (diff) | |
download | samba-01891782fd247c57f0ecd79ed9adf618108c5fac.tar.gz samba-01891782fd247c57f0ecd79ed9adf618108c5fac.tar.bz2 samba-01891782fd247c57f0ecd79ed9adf618108c5fac.zip |
Fix bug 6014 -- mget shouldn't segfault without arguments
Thanks to kevin.paulus@mtm.kuleuven.be for the bug report
Volker
-rw-r--r-- | source3/client/client.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 529f21ab30..c40c04e9c6 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -1353,6 +1353,11 @@ static int cmd_mget(void) do_list(mget_mask, attribute, do_mget, false, true); } + if (mget_mask == NULL) { + d_printf("nothing to mget\n"); + return 0; + } + if (!*mget_mask) { mget_mask = talloc_asprintf(ctx, "%s*", |