user: handle paths with whitespace / metacharacters
authormillert <millert@openbsd.org>
Thu, 18 May 2023 18:29:28 +0000 (18:29 +0000)
committermillert <millert@openbsd.org>
Thu, 18 May 2023 18:29:28 +0000 (18:29 +0000)
commit8e836504eae97cf1437d92d79fa2a1ba2422193f
tree173960cbcce91dfa74f0a57ba395fb651bbad0b4
parent2903f217bae1e91221fd325893a5b9b9a0c76bfe
user: handle paths with whitespace / metacharacters
Use execv(3) instead of system(3) to run external commands.
This avoids problems with whitespace and shell metacharacters
in path names.  OK op@
usr.sbin/user/user.c