mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
Print an error instead of crashing if no argument is specified for
smbclient -T Fixes bug 345.
This commit is contained in:
parent
45775b48a0
commit
a46e58e2b6
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user