1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00
openbsd-src/usr.bin/sdiff
mestre 32a0d31851 Add unveil(2) to sdiff(1) to the following files:
filename1 - given via args - read permission
filename2 - same as above
tmpdir - if TMPDIR env var is changed, or _PATH_TMP by default -
read/write/create/delete permissions
/usr/bin/diff - the default diff program - execute permission
_PATH_BSHELL - to spawn an EDITOR/VISUAL if -o is used - execute
permission

this diff only applies unveil(2) if -F is not used, meaning that we are not
changing the default diff program to be used since that way we would need to
find where the binary is whereas by default we are sure that the path is
/usr/bin/diff. this will be revisited at a later stage to cover all cases.

feedback and OK millert@ deraadt@
2018-09-28 18:21:52 +00:00
..
common.c
common.h
edit.c
extern.h
Makefile Add -Wno-sign-compare, the single warning produced is a false positive; 2017-09-05 06:27:38 +00:00
sdiff.1 add missing HISTORY; based on CVS logs and release announcements 2017-10-17 22:47:58 +00:00
sdiff.c Add unveil(2) to sdiff(1) to the following files: 2018-09-28 18:21:52 +00:00