Up to [local] / src / usr.bin / look
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_5_BASE
Revision 1.22 / (download) - annotate - [select for diffs], Sat Aug 11 11:00:34 2018 UTC (5 years, 10 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE,
OPENBSD_6_5,
OPENBSD_6_4_BASE,
OPENBSD_6_4
Changes since 1.21: +6 -4 lines
Diff to previous 1.21 (colored)
look(1) will access /usr/share/dict/words to look for the string we want, or it may access another file instead if we mention it via argument. In order to know which file to unveil(2) we need to push down pledge(2) a little bit after getopt(3) and now that we know the name of the file we can unveil(2) it only with read permissions. OK deraadt@