summaryrefslogtreecommitdiff
path: root/usr.bin/biff
AgeCommit message (Collapse)Author
2022-12-04userspace: remove vestigial '?' cases from top-level getopt(3) loopsScott Soule Cheloha
getopt(3) returns '?' when it encounters a flag not present in the in the optstring or if a flag is missing its option argument. We can handle this case with the "default" failure case with no loss of legibility. Hence, remove all the redundant "case '?':" lines. Prompted by dlg@. With help from dlg@ and millert@. Link: https://marc.info/?l=openbsd-tech&m=167011979726449&w=2 ok naddy@ millert@ dlg@
2021-07-12Change the error reporting pattern throughout the tree when unveilBob Beck
fails to report the path that the failure occured on. Suggested by deraadt@ after some tech discussion. Work done and verified by Ashton Fagg <ashton@fagg.id.au> ok deraadt@ semarie@ claudio@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2018-08-11Just like in mesg(1) in biff(1) we just need to push down pledge(2) a littleRicardo Mestre
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@
2016-07-07biff, mesg, vi: only consider ACCESSPERMS for setting tty mode.Sebastien Marie
it explicitly removes any S_ISUID|S_ISGID|S_ISTXT bits, instead of letting pledge(2) silenciously remove them. ok beck@ deraadt@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-10-12these callers of ttyname() no longer need to pledge "tty"Theo de Raadt
2015-10-12biff pledges to only do "stdio rpath fattr tty". (very small program..Theo de Raadt
the actual order of use is tty, rpath, stdio or fattr)
2013-08-12some minor fixes; From: Jan StaryJason McIntyre
2013-04-28further info for EXIT STATUS from Ryan Kavanagh: in the diff heJason McIntyre
originally sent, there was an important distinction that i ommitted, since i used freebsd's text; reinstate that text now.
2013-04-23add EXIT STATUS; original diff from Ryan Kavanagh, but i've used theJason McIntyre
(similar) text from freebsd;
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
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
2007-05-31convert to new .Dd format;Jason McIntyre
2007-02-20sort options; from Igor SobradoJason McIntyre
2003-06-10mostly ansi cleanup; pval okTheo de Raadt
2003-06-03Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2000-11-20repair; mpech@prosoft.org.lvTheo de Raadt
2000-11-09Change all option list specifications to ".Bl -tag -width Ds". Most manAaron Campbell
pages just needed their -width parameter tweaked to "Ds", which provides a nice width of 6 constant characters. For consistency more than anything.
2000-06-30warnx?/errx? paranoia (use "%s" not a bare string unless it is aTodd C. Miller
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).
2000-03-23More pedantic man page formatting insanity, lalalaAaron Campbell
2000-03-04Many improvements and general cleanup/standardization.Aaron Campbell
2000-02-29Various cleanup.Aaron Campbell
1999-07-26fix options; fgschAaron Campbell
1999-07-04correct use of .Nm; some other formatting nitsAaron Campbell
1999-06-05- remove trailing white spaceAaron Campbell
- remove arguments from .Os macros - remove arguments from .Nm macros, where appropriate - some more Dq/Sq/Ql insanity - still lots to do in the usr.bin tree... :/
1998-12-07WallTheo de Raadt
1998-09-23usr.bin/ man page repairs, a - eAaron Campbell
1998-07-22use S_IXUSR instead of 0100; noted by formTheo de Raadt
1997-09-21$OpenBSD$Theo de Raadt
1997-01-15getopt(3) returns -1 when out of args, not EOF, whee!Todd C. Miller
1996-08-07woofTheo de Raadt
1996-06-26rcsidTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt