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:
		| @@ -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 | ||||
|   | ||||
| @@ -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) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user