[sudo-commits] sudo changeset 12493:e9ecdf650c0a

Todd C. Miller Todd.Miller at sudo.ws
Thu Jun 18 19:07:10 MDT 2020


changeset:	12493:e9ecdf650c0a in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/e9ecdf650c0a
user:		Todd C. Miller <Todd.Miller at sudo.ws>
date:		Wed May 06 19:33:24 2020 -0600

Log Message:
	Don't allow duplicate values for command line options that take an argument.
	Previously, if multiple instances of the same command line option were
	specified, the last one would be used.  This meant that, for example,
	"sudo -u someuser -u otheruser id" would run the command as "otheruser".
	This has the potential to cause problems for programs that run sudo with
	a user-specified command that do not use the "--" option to indicate
	that no more options should be processed.  While this is a bug in
	the calling program, there is little downside to erroring out when
	multiple options of the same type are specified on the command line.
	Bug #924

diffstat:

 doc/sudo.man.in  |   8 +++++++-
 doc/sudo.mdoc.in |   8 +++++++-
 src/parse_args.c |  35 ++++++++++++++++++++++++++++-------
 3 files changed, 42 insertions(+), 9 deletions(-)



More information about the sudo-commits mailing list