OpenBSD CVS

CVS log for src/usr.bin/talk/talk.c


[BACK] Up to [local] / src / usr.bin / talk

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_5_9


Revision 1.11 / (download) - annotate - [select for diffs], Fri Feb 5 10:18:01 2016 UTC (8 years, 3 months ago) by mestre
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.10: +14 -1 lines
Diff to previous 1.10 (colored)

pledge(2) for talk(1):

At the beginning the largest pledge is the following:

rpath: read ~/.terminfo (the reason was changed pointed out by semarie@)
inet/dns: talk may need to connect to a remote host and resolve it
getpw: if getlogin(2) fails then it needs getpwuid(3) as a fallback
tty: this is a typical tty application, so it'll always need this annotation

Then just before the application main loop check if the talk is with local user
so it only needs "stdio tty", if it's remote then it needs "stdio inet tty".
I couldn't test this with a remote host to confirm if it needs inet or not but
as per jca@'s comment "tighter settings - if possible - can happen later"

ok jca@ and also discussed with tb@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.