gzip, gunzip: forbid empty suffix

This matches the behavior of GNU gzip.
This commit is contained in:
Eric Biggers 2016-10-23 13:54:52 -07:00
parent ed923c45d4
commit e7152b4866

View File

@ -491,6 +491,10 @@ tmain(int argc, tchar *argv[])
break;
case 'S':
options.suffix = toptarg;
if (options.suffix[0] == T('\0')) {
msg("invalid suffix");
return 1;
}
break;
case 'V':
show_version();