perry
8b0f9554ff
convert __attribute__s to applicable cdefs.h macros
2007-12-15 19:44:37 +00:00
christos
1a9cb96f06
PR/36820: Geoff C. Wing: ypserv maplist functionality broken due to off-by-one
...
error
2007-08-22 16:49:17 +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
hubertf
1a16cf8d89
- Remove unused ctype.h
...
- use EXIT_{SUCCESS,FAILURE} constants instead of 0/1
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-10 01:21:08 +00:00
christos
9c32e391e9
strlcpy off by one errors (from gdamore)
2006-10-15 01:10:00 +00:00
elad
a754c75075
PR/31956: Andrew Daugherity: Makefile.yp: shadow.byname map should respect
...
MINUID
Patch applied and verified by francisg@#NetBSD-code, thanks!
2006-10-07 16:54:38 +00:00
christos
fb4d7a1a6e
- fix pointer problems and unsigned int -> int confusion that lead to
...
undetected errors.
- factor out the socket creation code so that we don't have 4 copies.
- add -p <port> argument
- fix the majority of the lint problems.
- change all the strncpy's to strlcpy's.
2006-05-20 20:03:28 +00:00
mrg
aadd7d4847
sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.
2006-05-11 23:16:28 +00:00
mrg
9f5cbae0f8
res_search() takes u_char * as 4th argument - pass one.
2006-05-11 08:44:56 +00:00
bouyer
17cb72c505
In add_secure(), change
...
(status > 0) to (status == 0 && value). It doesn't make sense to handle value
only if there was an error.
Fix coverity ID 1709.
2006-03-22 19:54:13 +00:00
bouyer
d663834226
Fix memory leak if we're adding an existing group name.
...
Coverity ID 1568.
2006-03-18 14:33:07 +00:00
lukem
aa159e4a50
ypdb_open():
...
* Clarify what it does (adds YPDB_SUFFIX if it's missing).
* Add some explicit pathname length checks and display a warning if exceeded.
2005-06-20 00:29:42 +00:00
lukem
cdd4868c29
tweak filename length check
2005-06-20 00:08:35 +00:00
lukem
a0b1a25618
snprintf NUL terminates, so there is no need to explicitly do it afterwards
2005-06-19 23:43:51 +00:00
christos
71abc767dd
Use SA_NOCLDWAIT instead of catching the signal and waiting. Avoids signal
...
races the easy way.
2005-03-30 15:19:10 +00:00
thorpej
5b0ca568cb
YP -> NIS
2005-02-26 16:33:46 +00:00
wiz
206fd5016f
Bump date for previous.
2005-02-26 16:32:21 +00:00
wiz
835e5cd5bb
Sort SEE ALSO, bump date for previous.
2005-02-26 16:32:04 +00:00
thorpej
afca2fb3d4
YP -> NIS
2005-02-26 16:25:05 +00:00
wiz
c642006970
Bump date for previous.
2005-02-26 16:24:24 +00:00
thorpej
44a9a41c35
YP -> NIS
2005-02-26 16:22:47 +00:00
grant
52d13a428a
when generating maps, use -n argument to stdhosts(1) so ipv6 addresses
...
are allowed.
2004-12-29 13:08:24 +00:00
dsl
3cca093e74
Add (unsigned char) cast to ctype functions
2004-10-30 15:51:20 +00:00
peter
224f01f920
Constify.
2004-10-22 18:41:09 +00:00
peter
ebfed7ec9e
Check the status for each test and print the result or an error message
...
according to the status code. This fixes a core dump in test 4.
Closes PR bin/27145 from ianzag at megasignal.com
Reviewed by christos, jdolecek.
2004-10-22 18:33:06 +00:00
tron
84596c1d92
Fix bug which caused "ypinit" to die with a strange error message if
...
"/var/yp/binding" doesn't exist.
2004-10-05 11:35:35 +00:00
jrf
190b2e4c51
Replaced strncpy with strlcpy. Thanks to Peter Postma who
...
pointed them our in PR #25762 . Approved by christos@NetBSD.org .
2004-09-07 13:20:39 +00:00
lukem
b817247988
Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
...
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
agc
7db1d33cba
Modify the licences of code written by Theo De Raadt from a 4-clause
...
to a 2-clause licence (retaining UCB clauses (1) and (2)), per PR
22409 from Joel Baker, approved by Theo de Raadt, and ratified by
myself - the only discrepancy being the handling of the original
clause 3 in src/usr.sbin/yppoll/yppoll.c.
2003-12-10 12:06:25 +00:00
grant
cacf2d0f45
s/netbsd.org/NetBSD.org/i
2003-11-12 13:31:07 +00:00
grant
f59b2fa174
use An and Aq for name/email address instead of \*[Lt] and \*[Gt].
...
s/netbsd.org/NetBSD.org/i
2003-11-12 13:27:39 +00:00
fvdl
705a39bc93
Don't compare an int to NULL.
...
Some whitespace nits.
2003-10-21 03:00:41 +00:00
agc
326b2259b7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
lukem
0b856bc2de
use CPPFLAGS.filename=... to add file-specific overrides
2003-07-22 11:29:53 +00:00
itojun
d79a960daf
strlcpy
2003-07-16 06:57:39 +00:00
itojun
97a29a12a2
use bounded string ops (one strcpy remaining)
2003-07-14 05:55:38 +00:00
christos
644c9834e5
PR/5999: Todd Vierling: minor nits about Makefile.yp
...
Provide MINUID and MINGID variables to specify the minimum uid and gid to
be included in the password and group maps.
2003-04-20 20:53:45 +00:00
wiz
07d13217f3
Some e.g. cleanup: replace "eg" with "e.g.,". From Igor Sobrado in PR 19692.
2003-04-07 06:56:38 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
9115df8c49
success, not sucess. Noted by mjl.
2003-01-28 22:35:02 +00:00
wiz
dfb66d510f
instead, not insteed; from Adrian Mrva.
2002-12-21 12:58:38 +00:00
wiz
51146674bf
Foundation has only one a, from Adrian Mrva.
2002-12-21 12:57:44 +00:00
lukem
d348d3d723
tweaks for fparseln(3) move from libutil to libc:
...
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30 03:10:53 +00:00
lukem
c52b93f508
minor makefile delint
2002-09-18 13:31:52 +00:00
lukem
17d72c8a6b
use NETBSDSRCDIR as appropriate
2002-09-18 03:54:26 +00:00
wiz
5c90fa6755
ANSIfy, remove __P().
2002-07-06 21:30:26 +00:00
wiz
3a0b8f6e80
de-__P(), ANSIfy.
2002-07-06 01:00:15 +00:00
wiz
559abfe369
de__P(), ANSIfy.
2002-07-06 00:56:32 +00:00
wiz
d532b687e7
de-__P(), ANSIfy.
2002-07-06 00:55:29 +00:00
wiz
cfa755ae92
de__P, ANSIfy.
2002-07-06 00:53:54 +00:00