summaryrefslogtreecommitdiffstats
path: root/usr.bin/script/script.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-5/+5
|
* move from tame "ioctl" to tame "tty", which provides a better fit forderaadt2015-10-071-2/+2
| | | | | this program which uses tcgetattr(). the tcsetattr() calls are outside the tame regions.
* Repair tame() error check to be == -1deraadt2015-10-041-2/+2
|
* script is two processes. the main io-loop process can be locked down withderaadt2015-10-031-1/+7
| | | | | | | tame "stdio" since all it does is move data back and forth, while the master process needs "stdio ioctl" to use TCSAFLUSH at the very end. TCSAFLUSH is included in the kernel's rather restrictive ioctl feature lists made available with the "ioctl" ability.
* SIGCHLD handler was established before forking into two processes.deraadt2015-07-191-4/+11
| | | | | As a result it also ran in the child (incorrect). ok miod
* tzfile.h is an internal header that should never have been installed.millert2015-03-151-3/+2
| | | | | | | | | What's worse, the tzfile.h that gets installed is over 20 years old and doesn't match the real tzfile.h in libc/time. This makes the tree safe for /usr/include/tzfile.h removal. The TM_YEAR_BASE define has been moved to time.h temporarily until its usage is replaced by 1900 in the tree. Actual removal of tzfile.h is pending a ports build. Based on a diff from deraadt@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-14/+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
* in the write codepaths, errors other than EAGAIN are fatal to the loop; ok ottoderaadt2005-12-121-2/+6
|
* use STDERR_FILENO; ok cloderderaadt2005-04-111-3/+3
|
* Block SIGALRM during write--we only want it to interrupt read().millert2004-12-191-2/+7
| | | | OK deraadt@
* use err/warn and __prognamemickey2004-10-101-8/+9
|
* ARGSUSED before signal handler with unused signoderaadt2004-09-141-4/+8
|
* mostly ansi cleanup; pval okderaadt2003-06-101-16/+10
|
* 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-9/+9
|
* After a simplistic rewrite, signal flags were not being noticed until aderaadt2001-11-181-48/+104
| | | | | | | succesfull read operation. To avoid this, we must use SA_RESTART, and rewrite most of the guts to handle interrupted read, write, etc, even being careful to check what library routines are called.... input from millert, markus, and espie
* correct type on last arg to execl(); nordin@cse.ogi.eduderaadt2001-07-091-3/+3
|
* comment on a real nasty racederaadt2001-01-111-2/+3
|
* warnx?/errx? paranoia (use "%s" not a bare string unless it is amillert2000-06-301-3/+3
| | | | | | | | | 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).
* Propagate window size changes to slave.espie2000-04-161-2/+21
|
* Make script give correct return values; adapted from FreeBSDericj2000-03-221-13/+18
|
* union wait is wrong; christosderaadt1998-12-191-4/+4
|
* save errno in mangly handlersderaadt1997-08-061-2/+5
|
* save errno in sigchld handlersderaadt1997-08-041-2/+4
|
* user err(3)mickey1997-07-251-33/+5
|
* #if __STDC__ --> #ifdef __STDC__mickey1997-07-251-5/+5
|
* Wallderaadt1997-06-201-2/+5
|
* exec with argv[0] as shell, not "sh"; era@iki.fideraadt1997-03-251-3/+3
|
* 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/+273