deraadt
0e32a1f55d
date requires strict format including spaces, from miod
8 years ago
tedu
5724f1ae45
another case where bad things would happen after wrterror
8 years ago
tedu
57beaad82f
if somebody makes the mistake of disabling abort, don't deref null in
validate_junk. from Michal Mazurek
8 years ago
rpe
69394aed05
Replace single pattern case-blocks with simpler code.
OK halex@
8 years ago
rpe
27b3656f2f
Remove backslash, not necessary after '&&'
OK halex@
8 years ago
rpe
054cc29f2a
Replace last remaining `` with $()
OK halex@
8 years ago
millert
e33f078c05
Don't assume fprintf() will set the FILE * error condition.
Instead, check the return value of fprintf() and fflush()
and call clearerr() before returning on error. OK jca@
8 years ago
benno
9e6e578d7b
mention that ibuf_free() does not need a NULL check.
8 years ago
benno
a3c84db0c2
check for NULL in ibuf_free().
ok and slight improvement, mmcco@
ok semarie@ and encouragement tedu@ krw@
8 years ago
mmcc
7766921240
Remove NULL-checks before free() and a few related dead assignments.
ok and valuable input from millert@
8 years ago
guenther
b34242015e
Switch login(3) from lseek+read/write to pread/pwrite and only do the pread()
if the data is needed. Use O_CLOEXEC on the internal fd as MT paranoia.
Fix cast in offset calculation; delete register keyword;
prefer memset() over bzero()
ok millert@
8 years ago
deraadt
9fd93fdf64
welcome GENERIC.IP27 MP (dual cpu on O350 now)
ok visa
8 years ago
chl
0edf23d663
remove unused variable
ok tedu@
8 years ago
ajacoutot
2beb001665
Remove blank line for consistency with other rc.d scripts; no change in
behavior.
8 years ago
krw
d690be1bf1
mountd(8) changes require a pexp.
ok deraadt@
8 years ago
gsoares
a9b2bc5dde
add rcsid
8 years ago
sunil
83a87d3451
Now that default smtpd.conf aliases table has been switched to
'file' backend, we no longer have to generate the .db files.
Ok gilles@
9 years ago
sf
63d3463618
regen MAKEDEV
9 years ago
sf
afc2f24c19
add virtio-console driver
This patch adds a new driver for use of virtio-console devices as
ttys. It's still in an early state and not compiled by default, yet.
Currently it is only wired into amd64. i386 is still missing.
Discussed with uebayasi@, deraadt@
9 years ago
sf
6af539cb41
regen MAKEDEV
9 years ago
sunil
68066c2528
Switch to 'file' backend for aliases table for default configuration.
Ok gilles@ jung@ millert@
9 years ago
ajacoutot
b2419890c3
Revert, rc.d scripts have been fixed.
9 years ago
ajacoutot
27456e7c13
Comment the wait for start until I fix the x11 managers rc.d script.
9 years ago
ratchov
2377bf8149
Expose internal functions necessary to open audio devices and midi
ports using existing file descriptors.
9 years ago
reyk
0dc6f9d6e2
No need for an extra log.h
OK bcook@
9 years ago
deraadt
094b6ba06e
move to 5.9-beta
9 years ago
reyk
97252e04ad
Switch and sync to the log.c variant from httpd/relayd/iked/snmpd/vmd.
OK bcook@ jung@
9 years ago
ajacoutot
643ff62e07
After starting, unconditionally wait up to $daemon_timeout seconds to check that
the daemon is actually running (instead of only when using rc_bg).
This *may* trigger the following side effect: if a daemon starts then stops
right away (because of a config parsing issue for e.g.), then it will slow down
the boot process because rc will wait a bit before considering the start action
failed. But at least it will allow us to detect those daemons and fix them or
their rc.d(8) script.
At least as far as I can tell, all base daemons should cope with it just fine.
ok sthen@ robert@ on an earlier diff
9 years ago
reyk
b8496badea
Move log_sockaddr() to from log.c to util.c as it is a local addition
and actually not a "logging" function. No functional change.
9 years ago
ajacoutot
55908109a4
Child will not return a config parsing error to the parent so rc.d will lie and
tell you that the daemon succesfully started; prevent this by running a config
check first.
Note that we only do this for those particular daemons, not all that support a
config test mode.
ok benno@ phessler@
9 years ago
ajacoutot
da0a0680c3
Tidy up _rc_wait().
ok sthen@ robert@
9 years ago
ajacoutot
d156959a8d
Tweak pexp.
9 years ago
tb
90b17882f1
Simplify return call of rand() and rand_r() to make it easier to read.
This is slightly less robust, but RAND_MAX must be one below a power
of two in both variants anyway.
Based on a suggestion by Matthew Martin.
ok tedu@
9 years ago
ajacoutot
1e90611816
Drop the now useless multicast setup comment.
prodded by tim@, ok mpi@
9 years ago
ajacoutot
3628daa062
Simplify multicast option handling (10 less lines) by matching /etc/rc behavior
towards other YES|NO options and drop the error warning.
with and ok tim@, ok rpe@ on an earlier diff
9 years ago
ratchov
0dbf1530bb
Add _sndiop user and group for (future) privileged sndiod process.
ok deraadt
9 years ago
jturner
84f196c498
Add pexp match otherwise rcctl stop vmd doesn't work. OK deraadt@
9 years ago
sthen
e8c24d0335
add commented-out unbound.conf entries for dns64 (sitting in my tree and ok'd
some time ago by phessler and IIRC also mikeb), and for qname-minimisation
9 years ago
deraadt
d697a492aa
automatic HOSTALIASES setup is a bad idea
9 years ago
tedu
acb3665fb0
tiny sanity check on file size
9 years ago
bcook
a1172a2c6e
bump the major for libcrypto/ssl/tls for a CRYPTO_chacha_20 ABI change
ok jsing@, deraadt@, beck@
9 years ago
tb
a02ad43121
Add a cast to silence a compiler warning by clang on FreeBSD.
From Craig Rodrigues.
ok tedu@
9 years ago
deraadt
eb43e0a37f
vmm node only needs mode 600
9 years ago
tedu
1bd8c9e70f
Integrate two patches originally from Daniel Micay.
1. Optionally add random "canaries" to the end of an allocation. This
requires increasing the internal size of the allocation slightly, which
probably results in a large effective increase with current power of two
sizing. Therefore, this option is only enabled via 'C'.
2. When writing junk (0xdf) to freed chunks (current default behavior),
check that the junk is still intact when finally freeing the delayed chunk
to catch some potential use after free. This should be pretty cheap so
there's no option to control it separately.
ok deraadt tb
9 years ago
deraadt
c73606106c
libexec/smtpd dir no longer needed; ok gilles
9 years ago
sunil
fe815f777e
Use mailwrapper path instead of smtpd.
Ok tb@ jung@
9 years ago
reyk
67ade0d215
Previously forgot another /var in the comment
9 years ago
reyk
c107e6cdeb
/var/vm is a terrible idea, the images are filled on demand, they are
not backed by blocks until used.
So I'll use /home/vm instead.
Pointed out by deraadt@
9 years ago
reyk
07eac4e2f3
Add initial vm.conf(5) example. But please note that the grammar is
not fixed yet.
9 years ago
sunil
a1901af870
Now that makemap(8)/newaliases(8) are merged into smtpctl(8), update
the paths.
Ok gilles@, jung@
9 years ago