Up to [local] / src / usr.bin / biff
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: OPENBSD_6_4_BASE
Revision 1.16 / (download) - annotate - [select for diffs], Sat Aug 11 10:59:34 2018 UTC (5 years, 9 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.15: +6 -4 lines
Diff to previous 1.15 (colored)
Just like in mesg(1) in biff(1) we just need to push down pledge(2) a little bit to get the tty name. After this we can unveil(2) the tty with rw access in order to stat(2)/chmod(2) it, once this is done we can put back the same pledge(2) just right afterwards. OK deraadt@