]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
id: sanitize arguments better
authorAlan Somers <asomers@FreeBSD.org>
Fri, 11 Jun 2021 16:38:07 +0000 (10:38 -0600)
committerAlan Somers <asomers@FreeBSD.org>
Sun, 4 Jul 2021 04:14:06 +0000 (22:14 -0600)
commit5d7ae6fbb117fde20189db763a9561e97c2af35c
tree4f2908007abeb979d4becc1b83a8e17613a4f6e4
parente63372af710790e6d583a0f1f7d0a3a6e55b5369
id: sanitize arguments better

The -[AMc] flags ignore the user argument.  Better if id rejects
invocations that include a user argument along with any of those flags.

PR: 256554
Reviewed by: trasz
Sponsored by: Axcient
Differential Revision: https://reviews.freebsd.org/D30734

(cherry picked from commit 4a06e9377398b34922f8a67d7cb3ea980b95bde8)
usr.bin/id/id.c