Fail in case arguments are provided after options.

* src/vipw.c: Fail in case arguments are provided after options.
	Debian#677812
This commit is contained in:
Nicolas François 2013-08-13 23:13:09 +02:00
parent 0094abea6e
commit 9951b1f569
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-08-13 Nicolas François <nicolas.francois@centraliens.net>
* src/vipw.c: Fail in case arguments are provided after options.
Debian#677812
2013-08-13 Nicolas François <nicolas.francois@centraliens.net>
* lib/subordinateio.c: Fix count for ranges truncated in

View File

@ -5,7 +5,7 @@
Copyright (c) 1997 , Guy Maor <maor@ece.utexas.edu>
Copyright (c) 1999 - 2000, Marek Michałkiewicz
Copyright (c) 2002 - 2006, Tomasz Kłoczko
Copyright (c) 2007 - 2011, Nicolas François
Copyright (c) 2007 - 2013, Nicolas François
All rights reserved.
This program is free software; you can redistribute it and/or modify
@ -480,6 +480,10 @@ int main (int argc, char **argv)
usage (E_USAGE);
}
}
if (optind != argc) {
usage (E_USAGE);
}
}
if (do_vipw) {