| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
it to make.h so both dir.c and util.c can use it, although bde didn't
particularly like this part of the idea, IMO it's cleaner than it was.
Submitted by: bde
|
| |
|
| |
|
|
|
|
| |
Old code works only if at least one process name additionly specified.
|
|
|
|
| |
Reviewed by: kris
|
|
|
|
|
| |
PR: 23742
Submitted by: Rich Morin <rdm@cfcl.com>
|
| |
|
| |
|
|
|
|
|
| |
PR: 24369
Submitted by: Tony Finch <dot@dotat.at>
|
| |
|
| |
|
|
|
|
| |
I only noticed when I went to check that it worked OK in RELENG_3.
|
|
|
|
| |
because of new rename to /usr/libexec/cpp0
|
|
|
|
| |
were SVR%).
|
| |
|
|
|
|
| |
Submitted by: Martin Kraemer <Martin.Kraemer@Fujitsu-Siemens.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
and make sure it works next time.
Submitted by: markm, jhb
|
|
|
|
| |
isn't found in /etc/shells.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
PR: 23456
Submitted by: jgrosch@mooseriver.com
|
|
|
|
| |
Suggested by: assar
|
|
|
|
|
|
|
| |
include a reference to the Calendar FAQ. Also make argument parsing
a little more robust.
PR: 23881
|
|
|
|
|
|
|
|
|
| |
all devices are by default known by their 'cooked' name, so
my change was wrong. I thought it was a hangover from old 'block
tape device' support which hasn't worked (if it ever did) since
v6/PWB.
So, the default tape name is now the same as Linux. Far out, man....
|
| |
|
| |
|
|
|
|
|
| |
Submitted by: "Jason" <jsmethers@pdq.net>
Reviewed by: phk
|
|
|
|
|
| |
Submitted by: "Jason" <jsmethers@pdq.net>
Reviewed by: phk
|
|
|
|
|
| |
Submitted by: "Jason" <jsmethers@pdq.net>
Reviewed by: /sbin/md5
|
|
|
|
|
| |
Submitted by: Svein Skogen <tds@nsn.no>
Reviewed by: brian, ru
|
|
|
|
| |
Submitted by: ben
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
actually NOT '.' and '..'. Apparently this isn't the case when accessing
a directory via XFS over NFS on SGI systems. Since I don't have access to
an environment like that, this will sit out in -current for at least six
weeks. However, the patch proposed by the submitter seems acceptable, so
I've decided to commit it to the tree, in the hope that it will solve some
problems without bringing up others.
PR: 23300
Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>
|
|
|
|
|
|
|
| |
they started.
PR: 23356
Submitted by: Maxim Konovalov <maxim@macomnet.ru>
|
|
|
|
| |
Requested by: bde
|
|
|
|
| |
name if 'a' and 'b' are unit names. You can use 'a b' though.
|
|
|
|
|
|
|
| |
If the -R option was specified, don't truncate the local file even if its
mtime is incorrect.
PR: bin/23719
|
| |
|
|
|
|
|
|
| |
followed by a %d (probably others too) format specifier.
Reviewed by: audit
|
|
|
|
|
|
|
|
|
| |
the idle time instead of the atime.
This makes entries for people that have logged in but done nothing
else show up correctly.
Reviewed by: markk@knigma.org
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
base system, but not in BruceBSD.
o Fix up style violations of various sorts.
o Remove redundant normalization of hertz variable, as the sysctl handler
does this work (unlike when kread was used).
Submitted by: bde
|
|
|
|
| |
Reviewed by: freebsd-current
|
|
|
|
|
| |
Rev. 1.17 was "Obtained from NetBSD", but is significantly different from the
equivalent NetBSD revision (rev. 1.30), which does not have this bug.
|
|
|
|
|
|
|
|
| |
Catch and report lseek errors too
While reading header don't attempt to continue reading
if some IO operation fails
PR: 23549
|
|
|
|
|
| |
Correct .Xr macro usage.
Also fix few more typos while I'm here.
|
| |
|
| |
|