tron
3421be369d
Remove "/var/spool/clientmqueue" and "/var/spool/mqueue" from the list
...
of obsolete directories and handle them via the "sendmail" item in
postinstall(8), too. These directories are of course necessary on
systems using the "sendmail" package.
Problem pointed out by Hisashi T Fujinaka on "current-users" mailing list.
2006-06-09 21:19:40 +00:00
tron
c5ddcac518
Remove the "sendmail" configuration files and startup scripts from the
...
list of obsolete files. Resurrect the "sendmail" item which now flags
these files as obsolete unless the "sendmail" package is installed.
2006-06-09 12:18:30 +00:00
simonb
b93b04bf77
Sort the obsolete rc.conf(5) variables to check, and only check
...
sysctl once(!).
2006-06-08 20:58:38 +00:00
kardel
d3390a5a9b
merge timecounter branch
2006-06-07 20:59:28 +00:00
reed
4cfce7b21f
Check return value for setgid(), initgroups(), and setuid().
...
Log error and exit if failure.
2006-06-05 16:41:34 +00:00
christos
b3c28e1d64
kill explicit size printing in warning.
2006-06-03 21:55:28 +00:00
christos
98917af5f7
Increase the size of the array by two, so that we fit.
2006-06-03 17:29:56 +00:00
christos
842c42957f
check the return value of setsid.
2006-06-03 16:02:30 +00:00
jnemeth
b7899a65bc
try again with the Coverity annotation
2006-06-02 21:44:37 +00:00
hubertf
924dbbdb7d
Fix fix for Coverity CID 2751:
...
Move an error check to the right place, and instead of blindly insisting on
an argument for all of "no-emul-boot", "no-boot", "hard-disk-boot" and
"boot-load-segment", only require it for the last one, which is the only
one that requires/uses it.
OK'd by Christos
2006-06-01 21:06:37 +00:00
rpaulo
134b1ef326
Add missing coma.
2006-05-31 20:23:52 +00:00
rpaulo
fc5eb63af6
It doesn't make sense to print the MPLS ttl here.
...
While here, make the output look like Cisco IOS. Suggested by Mihai CHELARU.
2006-05-31 20:22:52 +00:00
tron
300dbf11e5
Check whether user and group "postfix" exist.
2006-05-30 19:31:13 +00:00
tron
73575a68a2
After removal of "sendmail":
...
- Remove the code dealing with "sendmail" updates.
- Don't check for the existence of user and group "smmsp" any more.
- Remove "/etc/rc.d/smmsp" and "/etc/rc.d/sendmail" because there defaults
have been removed from "/etc/defaults/rc.conf".
2006-05-30 05:53:24 +00:00
drochner
46e4eb1dd0
NetBSD has now "struct timespec" in ntptimeval
2006-05-29 10:04:13 +00:00
hubertf
5fdc69efae
Xref a few more manpages: user(8), group(8), ...
2006-05-29 01:38:33 +00:00
jnemeth
4c99f4ecf2
unlink temp file in error case
2006-05-28 11:33:56 +00:00
martin
ad53adb7c1
Make "entries" optional - so that `echo system > /etc/isdn/isdnd.rc; isdnd`
...
works.
2006-05-27 20:11:14 +00:00
jnemeth
d9a7dcfba5
Coverity annotation -- although memsave free()s its first argument, it
...
will allocate memory and assign it to its first argument, so it is neutral
Coverity CID 3229: memory leak -- failed to fclose() master in moduser()
Coverity CID 3228: memory leak -- failed to free() newname in groupmod()
2006-05-27 03:41:48 +00:00
jnemeth
62381dbddf
Coverity CID 3785: calling fclose() twice on same file pointer
...
Coverity CID 3780: dereference of NULL pointer
Approved by: christos@
2006-05-26 13:21:47 +00:00
jnemeth
305a7bfee2
In bincvt() use fdopen() on the fdesc returned by mkstemp(), instead
...
of fopen().
2006-05-26 11:45:31 +00:00
jnemeth
693e9aec19
Coverity CID 2977: failed to check for error return from ftell()
2006-05-26 11:13:20 +00:00
jnemeth
e10c71d2be
Coverity CID 3685: memory leak
...
While here, check for failure to create temp file in bincvt() and close
unused file descriptor.
XXX bincvt() should be rewritten to use fork()/exec() instead of system().
2006-05-26 10:59:58 +00:00
jnemeth
1124e30e6e
Coverity CID 3027: possible dereference of NULL pointer.
...
Also don't bother zero'ing memory immediately before reading the
.SYS file into it and check for errors while reading the file.
2006-05-26 09:25:27 +00:00
jnemeth
14902917f6
Remove redundant check for end of list wrapping around on itself.
...
It this were to actually happen, then others parts would go into
infinite loop. Also, fix KNF. Found while checking Coverity
CID 3784.
2006-05-26 02:16:17 +00:00
christos
e4dddba9c6
typo s/fp/fpw/
2006-05-25 03:17:43 +00:00
christos
862f4856b8
typo s/fp/fpw/
2006-05-25 03:17:26 +00:00
christos
cc17521d3c
Coverity CID 2959: Check before deref dammit.
2006-05-25 03:03:39 +00:00
christos
785022eb47
Coverity CID 2984: Static array overrun.
2006-05-25 03:02:25 +00:00
christos
df7031b876
Add missing semicolon.
2006-05-25 02:53:10 +00:00
christos
57ff0c4946
remove dup &&
2006-05-25 02:50:50 +00:00
christos
fdb8821322
Coverity CID 1455: Make sure that we don't overrun the array.
2006-05-25 02:48:09 +00:00
rpaulo
024ed52e7d
Add missing #endif.
2006-05-25 02:40:58 +00:00
christos
a43996b8ca
Coverity CID 783: Add an assertion for a NULL deref.
2006-05-25 02:37:38 +00:00
rpaulo
4264348cac
Beautify.
2006-05-25 02:35:50 +00:00
christos
79fc501cb4
Coverity CID 2294: Fix memory leak.
...
While here remove some bogus casts.
2006-05-25 02:35:32 +00:00
christos
1716cd4ef4
Coverity CID 1070: Check for NULL deref that cannot happen.
2006-05-25 02:33:16 +00:00
rpaulo
3a387eb457
Time to remove __P().
2006-05-25 02:32:56 +00:00
christos
25b83d98a5
Coverity CID 3653: Fix memory leak.
2006-05-25 02:31:38 +00:00
rpaulo
d5c00ee8c6
Now it uses the RFC 3542 API.
2006-05-25 02:21:59 +00:00
christos
830feeb9f3
use memcpy instead of bcopy.
2006-05-25 02:10:53 +00:00
christos
f5e466e11a
Coverity CID 2537: Avoid double free, and random free. how did this work?
2006-05-25 02:05:40 +00:00
christos
e86e72d9a8
Coverity CID 3194: Avoid NULL deref.
2006-05-25 02:01:40 +00:00
christos
180ca89a2b
Coverity CID 3195: ifdef out dead code.
2006-05-25 01:58:39 +00:00
christos
e30bfd160d
Coverity CID 3396: Fix file pointer leak.
2006-05-25 01:51:21 +00:00
christos
fb0d335338
Coverity CID 3377: Fix memory leak on error.
2006-05-25 01:49:30 +00:00
christos
d8050237b6
Coverity CID 1188: Don't check for NULL just to log and then die
...
de-referencing; return instead.
2006-05-25 01:44:28 +00:00
christos
4aafa6340a
Coverity CID 1189, 1190: Don't check for NULL just to log and then die
...
de-referencing; return instead.
2006-05-25 01:43:58 +00:00
christos
6388d5cc98
Coverity CID 1191, 1192: Don't check for NULL allocation, just to log it
...
and then die dereferencing. Return instead.
2006-05-25 01:41:13 +00:00
christos
43c323928f
Coverity CID 2718: Avoid using free'd memory.
2006-05-25 01:38:41 +00:00