From a46e58e2b6e3d9526012d6a2d903163a3373fa59 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 27 Aug 2003 07:39:26 +0000 Subject: Print an error instead of crashing if no argument is specified for smbclient -T Fixes bug 345. --- source/client/clitar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/client/clitar.c') diff --git a/source/client/clitar.c b/source/client/clitar.c index 5e20c3e11bb..f7a292dbbfe 100644 --- a/source/client/clitar.c +++ b/source/client/clitar.c @@ -1775,6 +1775,10 @@ int tar_parseargs(int argc, char *argv[], const char *Optarg, int Optind) if (tarhandle == 1) { dbf = x_stderr; } + if (!argv[Optind]) { + DEBUG(0,("Must specify tar filename\n")); + return 0; + } if (!strcmp(argv[Optind], "-")) { newOptind++; } -- cgit