summaryrefslogtreecommitdiffstats
path: root/usr.bin/biff/biff.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Just like in mesg(1) in biff(1) we just need to push down pledge(2) a littlemestre2018-08-111-4/+6
| | | | | | | | 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@
* biff, mesg, vi: only consider ACCESSPERMS for setting tty mode.semarie2016-07-071-1/+3
| | | | | | | it explicitly removes any S_ISUID|S_ISGID|S_ISTXT bits, instead of letting pledge(2) silenciously remove them. ok beck@ deraadt@
* fix exit status on pledge(2) failure.gsoares2015-12-291-2/+2
| | | | OK tb@ jsg@
* these callers of ttyname() no longer need to pledge "tty"deraadt2015-10-121-2/+2
|
* biff pledges to only do "stdio rpath fattr tty". (very small program..deraadt2015-10-121-1/+3
| | | | the actual order of use is tty, rpath, stdio or fattr)
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-15/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* sort options; from Igor Sobradojmc2007-02-201-3/+3
|
* mostly ansi cleanup; pval okderaadt2003-06-101-6/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-031-7/+3
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-3/+3
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-4/+4
| | | | | | | | | constant). These are not security holes but it is worth fixing them anyway both for robustness and so folks looking for examples in the tree are not misled into doing something potentially dangerous. Furthermore, it is a bad idea to assume that pathnames will not include '%' in them and that error routines don't return strings with '%' in them (especially in light of the possibility of locales).
* Wallderaadt1998-12-071-2/+3
|
* use S_IXUSR instead of 0100; noted by formderaadt1998-07-221-7/+7
|
* getopt(3) returns -1 when out of args, not EOF, whee!millert1997-01-151-3/+3
|
* rcsidderaadt1996-06-261-1/+2
|
* initial import of NetBSD treederaadt1995-10-181-0/+111