| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
This is needed for the '-e' option. See the PR for more details.
PR: 6047
Reviewed by: PR submitter, silence on review request.
|
| |
|
|
|
|
| |
on generated headers). This is now handled generally in bsd.prog.mk.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Added the -H and -P options for treatment of symbolic links.
o Removed the #ifdef BSD4_4_LITE, since it does not seem to do anything
useful
o Fixed up prn_octal() so its output looks more like that of AT&T Unices
when -b is given.
The next two lines apply only to the first two changes above:
PR: bin/6140
Submitted by: Max Euston
|
|
|
|
|
| |
PR: bin/6140
Submitted by: Max Euston
|
|
|
|
|
|
|
|
| |
o Added a new '-b' which behaves as in AT&T Unices (show unprintables in
octal, using C escape codes when possible)
o Added '?' to the getopt() string, since the code in the switch considers
it as a valid option.
|
|
|
|
| |
PR: 1315
|
| |
|
|
|
|
| |
case. Re-enable SUID mode.
|
|
|
|
|
|
| |
FreeBSD was not vulnerable, but their fix had some useful features.
Incorporate the best of those - rcp(1) no longer needs to be SUID
to root.
|
|
|
|
| |
Use .An/.Aq
|
| |
|
|
|
|
| |
Fixed some formatting.
|
| |
|
|
|
|
|
|
|
|
|
| |
specifies exiting with a zero status if the file was copied
successfully, and with a nonzero status if an error occurred. We
are too sloppy to tell if the file was copied successfully when we
get killed by a SIGINT, but it is unlikely to have been. Added a
comment about related sloppiness (calling exit() from a signal
handler).
|
| |
|
| |
|
|
|
|
| |
sourced by the "." command.
|
|
|
|
| |
Obtained from: OpenBSD (src/bin/chio/chio.c rev 1.7) by todd@openbsd.org
|
|
|
|
| |
Reviewed by: bde
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
urgent need is when you run sh around a program that intentionally
uses SIGQUIT/SIGINT for asynchronous events, i.e. $EDITOR started from
system(2), like many mailers do. This fixes PR bin/1206 and possibly
bin/4241.
The solution committed has been tested for a large number of possible
cases (see recent discussion on cvs-committers). I completed a make
world, made sure 'make world' is interruptable and used the changed
/bin/sh as a login shell all day, including job control and using
SIGQUIT-catching programs (to write this message :-).
PR: bin/1206
Reviewed by: discussion on cvs-commiters
|
| |
|
| |
|
| |
|
|
|
|
| |
the default.
|
| |
|
|
|
|
|
|
| |
printed a bogus warning with a stale errno if write() returns a short
count. Now we continue copying. We still print a bogus warning if
write() returns an "impossible" short count of 0.
|
|
|
|
|
|
|
|
|
|
|
| |
that this source is compiled against. This source is referenced by
install which is needed as a build tool and must be able to compile
against NetBSD headers and libraries if we have a hope of supporting
another architecture.
With this change, that's two working programs down and 3945 (?) to go.
The other one was make, but that didn't need any changes to work under
FreeBSD/Alpha. 8-)
|
|
|
|
| |
-g. ;)
|
|
|
|
|
|
|
|
|
|
| |
dd if=/dev/zero of=/dev=null obs=23520 conv=swab
coredumped.
Please somebody review it, i'm not 105 % sure i'm understanding all
this mess correctly.
Detected by: Holm Tiffe <holm@geophysik.tu-freiberg.de>
|
|
|
|
|
| |
PR: 5415
Submitted by: Sergei S. Laskavy <laskavy@pc759.cs.msu.su>
|
|
|
|
| |
Change "pat" -> "re" in man page.
|
| |
|
|
|
|
|
|
|
|
| |
writeable -> writable (recall prior debate over this? :-)
initialise -> initialize
recognise -> recognize
Merry Christmas! :)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
following of the symlink for `rmdir symlink/' and is unnecessary
for ordinary directories (POSIX doesn't require rmdir(1) to do
anything for trailing slashes; it requires rmdir(2) to let them
"refer to a directory", and following the symlink for symlink/ is
what BSD does). This also fixes bugs in the slash-stripping code
(for paths consisting entirely of slashes, the pointer into the
string was decremented to "before" the beginning of the string,
and the path was at best stripped to "".
The behaviour is unchanged except for the final directory for
`rmdir -p ...'. There is no alternative to stripping intermediate
slashes since they must be specified. The sloppy slash-stripping
code is adequate for intermediate directories, since the all-slashes
case fails early.
|
|
|
|
| |
Pointed-out-by: bde (a long while ago)
|
|
|
|
| |
Pointed-out-by: bde
|
|
|
|
|
|
| |
in-place.
Obtained from: OpenBSD ar_subs.c rev 1.7 by Tood Miller <millert@openbsd.org)
|
|
|
|
| |
Obtained from: OpenBSD file rev 1.4 by mickey
|
|
|
|
|
|
|
| |
>sprintf -> snprintf paranoia
Obtainted from: OpenBSD src/bin/stty/print.c v1.5
by Todd Miller <millert@openbsd.org>
|
|
|
|
|
|
| |
Make `date -?' output (pretty much) the same as
the man page
PR: 5269
|
|
|
|
|
| |
Reorder includes to be alphabetical some places since I already was in
here.
|
|
|
|
|
|
|
|
|
| |
> Error out if someone tries to mv a mount point. Old behavior was to
> move all files contained in the mounted filesystem to the dest. dir
> which could be quite nasty. Personally, I think rename(2) should
> return EPERM or EINVAL instead of EXDEV.
Obtained from: OpenBSD mv.c rev 1.6 by Todd Miller <millert@openbsd.org>
|
|
|
|
| |
Pointed out by: bde
|