| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Notes:
svn path=/head/; revision=132277
|
|
|
|
|
|
|
|
|
|
|
| |
This is a style bug. err() is declared is non-returning so that every
use of it doesn't need to be encrufted with NOTREACHED. It's too bad
that only gcc understands the declaration.
Asked by: bde@
Notes:
svn path=/head/; revision=116109
|
|
|
|
| |
Notes:
svn path=/head/; revision=116043
|
|
|
|
| |
Notes:
svn path=/head/; revision=99984
|
|
|
|
| |
Notes:
svn path=/head/; revision=95083
|
|
|
|
| |
Notes:
svn path=/head/; revision=93019
|
|
|
|
|
|
|
| |
help the GCC3 transition and CURRENT in general.
Notes:
svn path=/head/; revision=90415
|
|
|
|
|
|
|
|
|
|
|
| |
of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
Notes:
svn path=/head/; revision=87628
|
|
|
|
| |
Notes:
svn path=/head/; revision=87231
|
|
|
|
| |
Notes:
svn path=/head/; revision=82057
|
|
|
|
|
|
|
|
|
|
| |
The original (1.16) code was mostly correct, but this version is
far clearer.
Casts suggested to now be obfuscations by: bde
Notes:
svn path=/head/; revision=82051
|
|
|
|
|
|
|
| |
MFC after: 2 weeks
Notes:
svn path=/head/; revision=81979
|
|
|
|
| |
Notes:
svn path=/head/; revision=79755
|
|
|
|
| |
Notes:
svn path=/head/; revision=79535
|
|
|
|
|
|
|
| |
Idea from: Theo de Raadt <deraadt@openbsd.org>
Notes:
svn path=/head/; revision=79452
|
|
|
|
|
|
|
| |
Submitted by: Mike Barcroft <mike@q9media.com>
Notes:
svn path=/head/; revision=78624
|
|
|
|
| |
Notes:
svn path=/head/; revision=76887
|
|
|
|
|
|
|
|
|
|
| |
string after each successful snprintf() call. This makes apply(1) work
*correctly*, although the whole snprintf() deal really should be redone.
Bug noted by: nectar (about 3 weeks ago)
Notes:
svn path=/head/; revision=71615
|
|
|
|
|
|
|
|
|
|
|
|
| |
declarations & their arguments; use only one tab after types; restore the
type of argv to sync with src tree style; sort new variables under main();
fix continuation indents; remove extra blank line before free()'s. Still
to do: fix snprintf() handling as nectar & bde suggested to me.
Submitted by: bde
Notes:
svn path=/head/; revision=71326
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BDECFLAGS; ANSIfy; use EXEC instead of "exec " where appropriate; use
proper types (size_t, int); use proper variable names for certain things;
get rid of static 'cache' style stuff by moving and sanitizing the
original SHELL checking code to main(), this also makes it easier to
free() the string; rename file-scope system() to exec_shell(); use
snprintf() everywhere instead of sprintf(); actually remember to free()
other malloc()'d char pointers in main().
I left out the -s option in this revision along with getusershell()
checking because of objections made by Warner Losh <imp> and Garrett
Wollman <wollman>. I agreed with their assertions that such code was
unnecessary in a program like this.
I dare people to make this coredump now.
Some suggestions: nectar (snprintf() truncate checking)
Reviewed by: markm, eivind, jedgar
Tortured by: examples in apply(1), fuzz(1),
and a lot of random ideas I came up with
Notes:
svn path=/head/; revision=70692
|
|
|
|
|
|
|
|
|
| |
and make sure it works next time.
Submitted by: markm, jhb
Notes:
svn path=/head/; revision=70672
|
|
|
|
|
|
|
| |
isn't found in /etc/shells.
Notes:
svn path=/head/; revision=70671
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
especially on strings passed from argv; rename system() to exec_shell(),
and make it static; use strlcpy() and make sure it works; use proper
type (size_t) to be passed to malloc()/realloc().
Use getusershell() to make sure the SHELL environment variable passed is
safe to use. Add new option -s to allow anal users to pass things like
perl; this option is here along with getusershell() checking since the
such checking is only intended to affect things like suidperl that might
call apply(1).
Reviewed by: markm, jhb, C. Stephen Gunn <csg@waterspout.com>
Notes:
svn path=/head/; revision=70669
|
|
|
|
| |
Notes:
svn path=/head/; revision=68963
|
|
|
|
| |
Notes:
svn path=/head/; revision=67189
|
|
|
|
|
|
|
|
|
|
|
| |
This would have been commit #2 which was "Obtained from: BSD/OS" except
their code is buggy (they call err() if the execl() fails, which will
incorrectly call exit()), so instead this is:
Obtained from: NetBSD
Notes:
svn path=/head/; revision=60706
|
|
|
|
|
|
|
| |
Document -d flag. Rework SYNOPSIS section
Notes:
svn path=/head/; revision=54157
|
|
|
|
|
|
|
| |
Noticed by: Thomas Stromberg <tstromberg@rtci.com>
Notes:
svn path=/head/; revision=54113
|
|
|
|
| |
Notes:
svn path=/head/; revision=50477
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
track.
The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;
.\" $Id$
.\"
If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.
Approved by: bde
Notes:
svn path=/head/; revision=48792
|
|
|
|
|
|
|
| |
Misc small cleanups.
Notes:
svn path=/head/; revision=43929
|
|
|
|
|
|
|
| |
* Clean up waitpid parameter handling.
Notes:
svn path=/head/; revision=43928
|
|
|
|
| |
Notes:
svn path=/head/; revision=41568
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
execvp() in the child branch of a vfork(). Changed to use fork()
instead.
Some of these (mv, find, apply, xargs) might benefit greatly from
being rewritten to use vfork() properly.
PR: Loosely related to bin/8252
Approved by: jkh and bde
Notes:
svn path=/head/; revision=40301
|
|
|
|
|
|
|
|
|
| |
PR: 6599
Reviewed by: phk
Submitted by: Josh Gilliam <josh@quick.net>
Notes:
svn path=/head/; revision=36014
|
|
|
|
| |
Notes:
svn path=/head/; revision=34801
|
|
|
|
|
|
|
| |
posix standard on the topic.
Notes:
svn path=/head/; revision=24360
|
|
|
|
|
|
|
|
| |
Submitted by: Masanobu Saitoh <msaitoh@spa.is.uec.ac.jp>
Obtained from: NetBSD-bugs mailing list
Notes:
svn path=/head/; revision=14518
|
|
|
|
| |
Notes:
svn path=/head/; revision=8874
|
|
Notes:
svn path=/cvs2svn/branches/CHRISTOS/; revision=1590
|