christos
a0e4a7ac42
CID 1125882: Don't use unitialized variable; move code inside conditional
...
where it was intended.
2013-11-13 21:19:17 +00:00
christos
94a96ec4ae
use new scopeid functions
2013-10-19 17:16:25 +00:00
jnemeth
5a5317f49b
PR/46500 - Henning Petersen -- wrong permissions on create .seq files
2012-06-02 03:32:53 +00:00
wiz
1ac719d147
Remove unnecessary Bk/Ek pairs from SYNOPSIS.
...
No effective change except where I used the opportunity to sort options
and/or option descriptions.
2012-04-08 22:00:37 +00:00
wiz
3957bea1ef
Fix whitespace nits. Suggested by Bug Hunting.
2012-03-22 07:58:16 +00:00
wiz
918f67027f
Use Sq, and remove trailing whitespace.
2011-11-09 14:16:00 +00:00
is
5224338e35
If hosts.lpd contains '+', don't insist on reverse DNS == forward DNS.
2011-11-09 12:45:58 +00:00
plunky
9f61b80465
NULL does not need a cast
2011-08-31 16:24:54 +00:00
joerg
257a846ab4
static, __printflike, __dead
2011-08-30 19:27:37 +00:00
ginsbach
818c8e81ff
- Replace fatal2() with the appropriate err(3)/errx(3) calls.
2011-01-20 15:48:11 +00:00
wiz
c15af5889a
Fix fd leak in error cases. Found by cppcheck.
2011-01-04 09:43:39 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
he
74fd55ff5a
Remove what appears to be a spurious include of a.out.h.
2009-08-20 21:25:59 +00:00
roy
7027866a09
Rename internal getline() function to get_line() so it does
...
conflict with the soon to be added getline(3) libc function.
2009-07-13 19:05:39 +00:00
lukem
d877c4c3c0
Enable WARNS=4 by default, except for:
...
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)
2009-04-22 15:23:01 +00:00
wiz
fe9ffd31fe
New sentence, new line. Use .An.
2009-04-12 19:39:52 +00:00
joerg
bd9cbe41e8
Remove conditional, groff now knows how to deal with ASCII output.
2009-04-12 18:51:33 +00:00
joerg
c33b9a443e
Remove redundant .Xo / .Xc scope.
2009-03-10 13:34:45 +00:00
lukem
f5a433a737
fix -Wsign-compare issues
2009-01-18 09:57:26 +00:00
christos
629960d7f3
fix for 64 bit dev_t
2008-12-28 21:45:49 +00:00
jnemeth
482b1c26bf
PR/40117 - Bug Hunting -- new line, new sentence; punctuation
2008-12-06 02:28:58 +00:00
mishka
0678a17226
Perform line feed after printing usage line.
2008-10-22 07:59:43 +00:00
lukem
9c1945664c
Remove the \n and tabs from the __COPYRIGHT() strings.
...
Tweak to use a consistent format.
2008-07-21 13:36:57 +00:00
christos
8eef858ae2
patch from Dennis den Brok for foomatic
2008-05-07 17:44:44 +00:00
lukem
66176dfdff
Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
...
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
lukem
57d60ef891
Use mkstemp(3) (in a hokey manner) instead of mktemp(3).
...
XXX: still not 100% "safe", except that we're in a protected directory.
XXX: arguably we should keep the fds open and fdopen(3) dup()s,
XXX: but we're in a protected directory so it shouldn't matter.
2008-03-03 05:07:43 +00:00
dholland
68911b1cc8
This file requires errno.h
2008-02-24 19:31:30 +00:00
matt
156e0dc02f
scnkey is const char [][HEIGHT], not char [][HEIGHT]
2008-02-16 07:33:25 +00:00
perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
mlelstv
3b956ed6b4
Sort queue by time and jobid so that jobs submitted within the
...
same second are printed in order.
Fixes PR bin/37346
2007-12-01 09:26:58 +00:00
christos
03687f1fb0
remove null test; it is not necessary as we always look at the next element.
...
from Anon Ymous
2007-10-03 19:07:43 +00:00
christos
0bfe3e6189
- int -> size_t
...
- off by one in \n printing [Anon Ymous]
- return when the end of the array is reached.
2007-10-03 17:45:47 +00:00
ginsbach
1f1c7f87ed
- remove extraneous \n in err(3) message
...
- minor KNF whitespace nit
2007-09-11 15:46:56 +00:00
tls
4147a3c54a
Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
...
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry. RedHat has
evidently built all "core system packages" with this option for some time.
This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.
This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros. Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.
Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default. Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
christos
0eeca5df9e
coverity CID 1220: Don't use size_t for return of read.
2007-05-16 20:45:45 +00:00
christos
1665d5e960
fix spelling of accommodate; from Zapher.
2006-11-24 19:46:58 +00:00
christos
f6a7372b60
use c99 initializers
2006-10-22 21:09:47 +00:00
christos
df7031b876
Add missing semicolon.
2006-05-25 02:53:10 +00:00
christos
ddd7ee439d
Coverity CID 830: Avoid NULL deref.
2006-05-25 00:21:52 +00:00
christos
ede17ba69d
Coverity CID 3322: Fix memory leak.
2006-05-25 00:19:27 +00:00
mrg
4bc6feceb6
end the argument list to exec*(3) with a NULL instead of a bare '0', as
...
the latter isn't a pointer context in these varargs functions.
2006-05-11 00:22:52 +00:00
christos
db1dbe6ce9
Coverity CID 1225: Don't close negative fd. While here fix fd leak.
2006-03-21 22:49:43 +00:00
christos
4a6e5a625c
Coverity CID 1750: Add a function to free a queue and use it.
2006-03-21 22:47:26 +00:00
christos
1f548f352a
Coverity CID 1752: getq() always allocates a queue if nitems >= 0, so always
...
free it.
2006-03-21 22:37:34 +00:00
christos
fca770b32a
Appease Coverity CID 2580 [not a bug]
2006-03-17 17:06:30 +00:00
christos
227e68b656
free memory on allocation failure.
2006-03-17 17:04:22 +00:00
christos
f49dbe00ee
- use sizeof() instead of the buffer size.
...
- check write return.
- use MAXPATHLEN instead of BUFSIZ for a path buffer.
2006-01-29 18:55:46 +00:00
wiz
ec5cd4a9b7
New sentence, new line. Bump date for previous. Properly case PostScript.
2006-01-22 21:31:17 +00:00
wiz
2d00c446d6
Bump date for previous.
2006-01-21 23:34:45 +00:00
christos
c681304808
Instead of dealing with port@host in many places, do it where it is needed.
...
It reduces code and complexity and at the same time allows as to use symbolic
ports instead of just numeric everywhere.
2006-01-20 17:30:00 +00:00