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
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
simonb
9bc855a931
s/the the/the/ (only in sources that aren't regularly imported from
...
elsewhere).
2004-04-23 02:58:27 +00:00
christos
6bd1d6d4db
Replace the statfs() family of system calls with statvfs().
...
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
grant
cacf2d0f45
s/netbsd.org/NetBSD.org/i
2003-11-12 13:31:07 +00:00
itojun
686afb7f65
safer use of realloc
2003-10-16 06:22:09 +00:00
tron
d6dfcb09dd
Don't try to compile "vprintf.c" because NetBSD has all the functions
...
defined there.
2003-10-14 11:49:52 +00:00
lukem
9c437ec754
Change `LNFILES' to `BUILDSYMLINKS', to more accurately describe its purpose.
...
Per discussion with Simon Gerraty.
2003-09-20 06:20:41 +00:00
lukem
49fb32cb30
use LNFILES instead of homegrown equivalent
2003-09-04 06:42:50 +00:00
itojun
4572e734b1
plug memory leak. openbsd-pr-3416
2003-08-27 08:15:16 +00:00
itojun
9088831850
tabify
2003-08-11 16:20:11 +00:00
itojun
de3e7a8bf6
debian bug id "sup 1.8-8, bug #175327" - temporary file symlink race
2003-07-28 23:13:17 +00:00
christos
f2829c2b54
fix problem with fgets()
2003-04-04 23:10:10 +00:00
christos
8fe39e55bc
This Makefile should not need bsdmake!
2003-04-03 20:32:41 +00:00
christos
2f01db86ba
add more defines for stuff we have.
2003-04-03 17:56:52 +00:00
christos
e2f800d682
put back <sys/ioctl.h> in case we are lunix.
2003-04-03 17:15:22 +00:00
christos
c8ee373ee5
Port to linux
2003-04-03 17:14:24 +00:00
drochner
594e5ccb92
remove some #includes which are unneeded since the transition
...
to getifaddrs(3)
2003-04-01 08:46:10 +00:00
wiz
9115df8c49
success, not sucess. Noted by mjl.
2003-01-28 22:35:02 +00:00
jschauma
432d470724
Fix typos pointed out by Igor Sobrado in PR misc/19621.
2003-01-02 00:22:29 +00:00
wiz
ea577b210e
Debugging is usually spelled with three gs.
2002-12-22 13:50:35 +00:00
thorpej
f33f7a14c5
Avoid strict alias warning.
2002-12-06 15:21:08 +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
provos
32b88027c7
use readlink with bufsize - 1; approved thorpej.
2002-10-19 20:33:17 +00:00
mycroft
45e43d0ec5
select() -> poll()
...
Also clean up some very ugly code.
2002-09-19 02:49:41 +00:00
lukem
c52b93f508
minor makefile delint
2002-09-18 13:31:52 +00:00
soren
7ba72383ee
Don't omit third argument to open(2).
...
PR bin/17885 from mjl.
2002-08-09 11:06:43 +00:00
wiz
4f156aff23
Fix a lint warning by removing some #ifdef lint (!?!).
2002-07-10 23:55:06 +00:00
wiz
790f1e25bd
Remove unneeded header file.
2002-07-10 23:49:18 +00:00
wiz
c3825c9257
Remove some unneeded typedefs and defines.
2002-07-10 23:47:01 +00:00
wiz
0b6819637f
Usge -> Usage in comment.
2002-07-10 21:31:30 +00:00
wiz
09e4390a6e
De-lint a bit.
2002-07-10 21:28:13 +00:00
wiz
a330b47ad5
Cleanup, part 2:
...
Remove 'register'. ANSIfy. indent(1). Static -> static.
Change some ``#include <header.h>'' to ``#include "header.h"'' for
local headers.
Fix function declaration mistakes uncovered by ANSIfication.
2002-07-10 20:19:38 +00:00
wiz
6623130407
Remove unused ci.c.
2002-07-10 18:55:34 +00:00
wiz
77085dee52
Cleanup, part 1:
...
Remove sysent.h, unneeded.
Remove __P().
unifdef __STDC__
Remove some #if 0 parts.
Start ANSIfication.
2002-07-10 18:53:56 +00:00
wiz
6e749bff5c
Comment out token after #endif.
2002-05-16 19:48:18 +00:00
heinz
07dc707915
typo
2002-03-23 22:31:36 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
wiz
a2d753e3ef
Whitespace nits.
2002-01-19 11:44:57 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
itojun
9a881fc0f7
typo in IPv6 support. listen to wildcard address correctly.
2001-09-18 04:36:28 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
itojun
55e8bc4e8b
make sup/supfilesrv IPv6 ready. supfilesrv listens to single socket,
...
therefore, you will need two instances running for dual stack support
(one with -4 and one with -6).
2001-09-11 03:33:52 +00:00
itojun
c976c20dc0
correct 1st arg to select().
2001-09-11 03:32:55 +00:00
wiz
f3f6c5b675
`accessible' only has one `a'.
2001-06-19 12:52:20 +00:00
wiz
40ac848024
Fix various misspellings of compatible/compatibility.
2001-06-11 01:50:48 +00:00
mycroft
5087e52718
Kill .NOPATH, and fix some DPADDs.
2001-01-18 03:28:19 +00:00
cgd
d594ce939b
comment or delete text after CPP directives.
2001-01-16 02:50:27 +00:00
christos
d4f4672be8
move target definition after including bsd.prog.mk so that target protection
...
works.
2001-01-14 10:36:11 +00:00
christos
b4d783f6b6
move target after including bsd.prog.mk so that target protection works.
2001-01-14 10:34:57 +00:00
lukem
443a19e035
convert to using .WAIT
2001-01-09 03:13:39 +00:00
enami
270db080e9
Use PRINTOBJDIR.
2001-01-07 08:00:54 +00:00
martin
8d2fdb358e
Don't duplicate system declarations (vsprintf and friends) already
...
present in system headers. Even worse: those declarations have slightly
different argument types (va_list vs. _BSD_VA_LIST_)
2000-12-30 21:36:23 +00:00
scw
eee03f150e
No need to initialise a global to zero.
2000-12-13 23:00:32 +00:00
is
d8302e2d73
More format string cleanups by sommerfeld.
2000-10-11 20:23:46 +00:00
tron
fd8ae9c4ea
Use correct argument type in call to "fparseln(3)". Fix supplied by
...
Motoyuki Konno in PR bin/10645.
2000-07-21 16:03:14 +00:00
enami
edea8c9791
You can't just define read_line as fparseln since former keeps the storage
...
internally but latter allocates everytime.
2000-07-19 07:52:44 +00:00
abs
fd407a99b7
If we fail due to not being able to lookup our own hostname, display the
...
name in question in an attempt to reduce the number of people who have to ask
how to get sup working...
2000-03-12 12:16:49 +00:00
mycroft
f5d7100e26
Nuke `extern int errno;' in code we compile with -Wstrict-prototypes. We get
...
the correct definition from errno.h.
2000-01-21 17:08:33 +00:00
kristerw
2220c68654
Typos (from OpenBSD)
1999-11-18 19:02:31 +00:00
bouyer
28602510ee
Add libwrap support to supfilesrv, as annnounced 2 weeks ago on tech-userlevel,
...
conditioned by #ifdef LIBWRAP (on by default).
I renamed '-l' (the 'live' mode) to '-d' and '-l' is now used to enable
logging of successfull connections, to be consistent with what other NetBSD
daemon use.
These changes are on on sup2.fr.netbsd.org since 2 weeks.
1999-08-24 15:52:52 +00:00
erh
131ee1a7b6
Replace the provided read_line function with calls to the fparseln function in libutil. Maintain compatibility on machines without fparseln through the NEED_READ_LINE define.
1999-08-02 05:36:05 +00:00
christos
717ef4f35b
Add -u flag, that prevents sup from attempting to restore a and m times
...
on the received files.
1999-06-17 05:11:47 +00:00
pk
5c3c96216b
Software_Distribution => Software.Distribution.
1999-04-12 20:48:07 +00:00
lukem
7e1c62baf8
set MKLINT=no. noted by NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
1999-03-13 23:17:46 +00:00
lukem
dcab0210a0
convert from NOxxx= to MKxxx=no.
...
include <bsd.own.mk> if testing a MKxxx variable.
1999-02-13 02:54:17 +00:00
kleink
3ed4fcf61e
In userland, pull in <errno.h> instead of <sys/errno.h> for the declaration
...
of errno.
1999-01-11 22:39:59 +00:00
kim
be631b22d4
Type mismatch in declaration... NOT (reverted previous change).
1998-11-02 04:00:24 +00:00
kim
98c529f1c2
Type mismatch in declaration.
1998-10-14 08:42:21 +00:00