[sudo-commits] sudo changeset 12408:66e2612e7672

Todd C. Miller Todd.Miller at sudo.ws
Thu May 7 07:52:42 MDT 2020

changeset:	12408:66e2612e7672 in /raid/repos/sudo
details:	https://www.sudo.ws/repos/sudo/rev/66e2612e7672
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


 NEWS             |   5 +++++
 doc/sudo.man.in  |   8 +++++++-
 doc/sudo.mdoc.in |   8 +++++++-
 src/parse_args.c |  35 ++++++++++++++++++++++++++++-------
 4 files changed, 47 insertions(+), 9 deletions(-)

More information about the sudo-commits mailing list