CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2018/10/31 01:39:10
Modified files:
usr.bin/htpasswd: htpasswd.c
Log message:
htpasswd(1) when in batch mode (-I) and 1 argument is used, or when not in
batch mode and 2 arguments are used we know we have to access argv[0] with rwc
permissions and also to rwc a temporary file in /tmp so we can unveil(2) both
argv[0] and /tmp with rwc permissions. In order to avoid adding "unveil" to
pledge(2), just call it after getopt(3).
Remaining code paths already have fs access disabled via pledge(2).
OK florian@ deraadt@