ITS#7465 fail if both -a and -s specified

vmware
Howard Chu 12 years ago
parent 9a5d4370be
commit 784757faa9
  1. 4
      libraries/liblmdb/mdb_stat.c

@ -62,6 +62,8 @@ int main(int argc, char *argv[])
while ((i = getopt(argc, argv, "aefns:")) != EOF) {
switch(i) {
case 'a':
if (subname)
usage(prog);
alldbs++;
break;
case 'e':
@ -74,6 +76,8 @@ int main(int argc, char *argv[])
envflags |= MDB_NOSUBDIR;
break;
case 's':
if (alldbs)
usage(prog);
subname = optarg;
break;
default:

Loading…
Cancel
Save