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
martin
ce099b4099
Remove clause 3 and 4 from TNF licenses
2008-04-28 20:22:51 +00:00
christos
7ee4122ccd
get only the last path component of the program name.
2008-01-03 04:13:54 +00:00
christos
14002ac9c8
make sup-0.2
2007-12-20 20:25:08 +00:00
christos
8f6e6d108f
include libc.h and c.h after all the headers, so that __unused is not defined
...
until the headers have been included.
2007-12-20 20:17:52 +00:00
christos
fc5737cefd
use setproctitle, so that we know which host we are serving.
2007-12-20 20:17:15 +00:00
christos
3791e7cc61
- add setproctitle
...
- add commented out DEFS for the layout I use.
2007-12-20 20:16:34 +00:00
christos
d5abced1d5
If the filesystem where the scan file resides got full while the scanner is
...
running, you can end up with an incomplete scan file because there was no
error checking done. Then sup will happily delete all the files that are
missing from the scan file. Make sure we have written a good scan file before
renaming.
2007-12-20 20:15:59 +00:00
christos
55dfe21e44
more EE_XXX stuff for different layout.
2007-12-20 20:14:24 +00:00
christos
92376661d1
__unused for those who don't have it [linux]
2007-12-20 20:12:12 +00:00
christos
6ec6ec5548
setproctitle for those who don't have it [linux]
2007-12-20 20:11:24 +00:00
christos
2220b74719
patch from pkgsrc
2007-12-06 21:58:58 +00:00
taca
a3cbbf6d39
Remove an unused variable at previous commit in listdir().
2007-10-07 05:25:19 +00:00
christos
9f1fcc0d86
portability fixes from joerg.
2007-10-06 20:19:52 +00:00
christos
ce7376f2ed
more cygwin fixes.
2007-07-20 18:58:14 +00:00
christos
52c8d9f862
cygwin support.
2007-07-20 16:39:05 +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
msaitoh
8ce1f4fff2
fix typos
2007-04-29 20:23:34 +00:00
christos
c20e20ce2a
From Anon Ymous:
...
- add __unused
- fix volatile
2006-12-20 16:33:34 +00:00
christos
1b75c508c8
Programs that had their own efuns, use libutil's now.
2006-08-26 18:15:37 +00:00
christos
830feeb9f3
use memcpy instead of bcopy.
2006-05-25 02:10:53 +00:00
mrg
67c9075410
rename clog to sup_clog. (ugh. we don't even have clog())
2006-05-10 21:45:40 +00:00
mrg
0c37c63edc
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
...
socklen_t are different signness.
2006-05-09 20:18:05 +00:00
christos
71547fcffa
Revert part of the previous coverity fix (Urban Boquist)
2006-04-13 21:48:54 +00:00
christos
3cd2d0576e
rename salloc to estrdup.
2006-04-02 01:39:48 +00:00
christos
83daacaaf8
Coverity CID 621: Remove dead code.
2006-03-22 17:16:09 +00:00
christos
e5f6d71c5b
Coverity CID 798: t can only be null if p is null. otherwise p needs to contain
...
a name.
2006-03-22 17:14:16 +00:00
christos
20a63f0a54
Coverity CID 888: Detect error when host is not found.
2006-03-22 17:10:33 +00:00
christos
2d056bacca
Coverity CID 893: Check the pointer for NULL before using anyway, although
...
in the current situation it cannot happen.
2006-03-22 17:05:44 +00:00
christos
76ad3db40d
Coverity CID 1644: Plug memory leak.
2006-03-22 17:03:29 +00:00
christos
84d29c783e
Coverity CID 1645: Fix memory leak.
2006-03-22 17:01:47 +00:00
christos
c8f598b3af
Coverity CID 1646: Free storage on error
2006-03-22 16:58:30 +00:00
christos
2ed64bb14a
Coverity CID 1647: Close file on error.
2006-03-22 16:57:18 +00:00
christos
4830490bed
Coverity CID 1701: Fix memory and descriptor leak on error.
2006-03-22 16:56:10 +00:00
christos
821808de71
Coverity CID 1708: Close file on error.
2006-03-22 16:54:26 +00:00
christos
b8595bc4e5
Coverity CID 2581: set variable to NULL after free.
2006-03-22 16:45:48 +00:00
christos
18358a0809
Coverity CID 2582: Set variables to NULL after freeing.
2006-03-22 16:44:30 +00:00
christos
17eb3e6ddd
Coverity CID 2583: Appease error by setting name to NULL after free.
2006-03-22 16:42:41 +00:00
christos
cff2dad821
add a tar target.
2006-03-14 22:59:43 +00:00
christos
0c402ec936
provide a declaration for crypt(). Casting to char * will not work for
...
64 bit OS's.
2006-03-14 17:45:03 +00:00
christos
d7571e6e65
Make building work on NetBSD again [in this directory with the standard
...
Makefile]
2006-03-14 17:42:06 +00:00
elad
226d27021a
add mode 0600 for open call with O_CREAT.
2006-01-13 10:06:10 +00:00
lukem
365a6c8313
Convert from tmpnam()/open() -> snprintf()/mkstemp(); the latter
...
avoids a linker warning about the use of tmpnam().
2005-06-18 11:07:26 +00:00
christos
03cbcf1149
check error return from malloc and bail.
2004-12-21 16:20:09 +00:00
christos
ce14df22e4
Get rid of the data resource limit, since we are going to be using a lot
...
of memory.
2004-12-21 16:19:50 +00:00
christos
ff8b4faf02
Use strdup() instead of home-grown version and exit on error.
2004-12-21 16:19:09 +00:00
itojun
bb4eb5b8cd
NI_WITHSCOPEID was not picked up by IETF standardization
2004-11-16 06:00:37 +00:00
dsl
9122339b9f
Add (unsigned char) cast to ctype functions
2004-10-30 15:39:39 +00:00
enami
b54d2249c1
Fix indent.
2004-09-30 02:17:53 +00:00
enami
dd01d48860
Don't set AI_NUMERICHOST in matchhost() to resolve given hostname since
...
it is supposed to be an arbitrary name (i.e. not restricted to numeric
representation). Tested by Soda with our production server. PR#27047.
2004-09-30 02:17:14 +00:00