Commit Graph

8851 Commits

Author SHA1 Message Date
christos
83437ade68 - in silent run, only print notifications on error.
- avoid unnecessary overlapping strncpy
2008-12-17 17:56:32 +00:00
christos
bf23612c38 - use getopt to parse argument instead of home brewed code
- add -M user flag to specify the username to send mail to from the command line
- some snprintf
- sort options.
2008-12-17 17:54:51 +00:00
christos
0f9fc8e8fb document -M flag. 2008-12-17 17:53:19 +00:00
christos
2cd3d9d4aa Remove 3rd buggy copy of this function and use snprintb(3) instead.
No need to allocate MAXPATHLEN buffers anymore.
2008-12-16 22:44:50 +00:00
christos
04fb6a55d2 don't need this anymore. 2008-12-12 21:41:04 +00:00
pooka
de62974531 Do some nasty manual tricks and treats to avoid having to call
rump_init() here (creating threads before we ask p2k to detach from
console is bad).
2008-12-12 19:59:00 +00:00
mishka
43e91ff9f2 Import rc.d/httpd script for httpd(8) daemon control.
See rc.conf(5) for options explanation.
2008-12-11 13:55:16 +00:00
plunky
1bbd35ddef modify some SDP data parsing function names to avoid conflicts with similar
functions that are intended to be imported to libsdp.

(this will use the library routines when they are done)
2008-12-06 20:01:14 +00:00
jnemeth
482b1c26bf PR/40117 - Bug Hunting -- new line, new sentence; punctuation 2008-12-06 02:28:58 +00:00
cube
6d69dde342 - Introduce a function get_makevar that will retrieve the values of a
specific set of user-derived variables, to be used in SOURCEMODE.
- In SOURCEMODE, generate the rc.d scripts xdm and xfs.
- Auto-detect if X11 sets are used (either through the value of MKX11 in
  SOURCEMODE, or by finding an xetc-xpecific file in sets mode).
- Ignore X11-specific rc.d scripts if X11 is not used.
2008-12-05 19:01:23 +00:00
christos
b3ed889133 PR/40043: Geoff C. Wing: syslogd timestamping and protocol parsing deficiencies
Syslogd does not properly handle:

1) the ADDDATE flag which is set with -T invocation and when messages
   come from the kernel.  Other cases where it is set it is ignored
   as timestamping is always done (e.g. logmsg_async())

2) the variable found_ts in check_timestamp().  It would determine
   whether or not the message had a (possibly valid) timestamp, set
   found_ts to true, then ignore that in most cases.  If we can't find
   a timestamp return.

3) messages without a parsable timestamp should get one when outputting
   the BSD syslog format so that a syslog-protocol timestamp isn't
   injected (chopped off with BSD syslog length) giving something like:
    "2008-11-27T15:0 cisco -: 1790:"
     ^ time might have been 2008-11-27T15:02:35.296497+11:00

4) syslog protocol version checking only checked for a leading numeral
   one (1) then skipped two places (presuming a space).  Messages sent
   from some sources (e.g. my cisco) may be
     "1795: Nov 27 04:12:52: %LINEPROTO-5-..."
   which would be chopped to
       "95: Nov 27 04:12:52: %LINEPROTO-5-..."
2008-11-27 20:37:21 +00:00
reinoud
2a0c8a48e6 Fix typos in the manpage. Thanks for snj for the patch. 2008-11-26 21:04:56 +00:00
pooka
6459cc14b9 Dynamically load ext2 support, since the linker can't handle more
that one file system module (ext2fs uses both ffs and itself).
2008-11-26 19:41:11 +00:00
pooka
762d8bce6b Try to honor rump_threads by not creating iothreads if threads are off. 2008-11-26 07:20:22 +00:00
nakayama
c16b2cafae Add scan obsolete minor shared libraries in /usr/X11R7/lib.
Also scan in /usr/lib/i386 for amd64, /usr/lib/sparc for sparc64.
2008-11-24 20:12:28 +00:00
ad
577910fbd3 Make the allow-multidot option useful. 2008-11-21 10:02:12 +00:00
pooka
2d18baefd2 Silly-rename child to worker (no pun intended .. maybe).
nfsd is threading these days.
2008-11-21 07:48:35 +00:00
pooka
c02ede9188 use varargs macro to make -DDDEBUG compile 2008-11-21 07:42:30 +00:00
cegger
1754024de3 redo previous:
check ID in getcpuid(). This way, the other commands (online/offline)
tell the user the real error.
2008-11-19 20:56:08 +00:00
pooka
e10fef6cd2 Split vfs out of rumpkern into rumpvfs. Non-fs rumps no longer
include the file system code.  File system rumps explicitly need
to include rumpvfs from now on.
2008-11-19 14:10:48 +00:00
rmind
cdaedad50c cpu_identify: check ID against number of processors.
Fix for PR/39955.
2008-11-19 11:05:40 +00:00
chris
0903aecdd9 lkm1, lkm2 and lkm3 are now obsolete and don't exist in the source tree,
so remove the references to them from postinstall.
2008-11-18 13:14:12 +00:00
pooka
de3f0274f6 Don't set PUFFS_FLAG_OPDUMP by default. 2008-11-14 13:45:25 +00:00
pooka
b2fa04c6b2 Now that MKPUFFS is default, kill it as advertised.
While there, give puffs and refuse files sensible syspkg entries.
2008-11-12 13:17:27 +00:00
reed
862cfefb55 Output (when verbose) when storing checksum files.
This may be a little noisy.
As discussed on current-users in March 2008.
2008-11-08 02:11:54 +00:00
reed
5656e47ecf Be consistent (like the other rpc* manual pages) and have the
Document Title match the filename.
Now this is correct alphabetically for the man0 generation.
2008-11-08 02:08:39 +00:00
christos
61a52fac84 PR/39874: Geoff C. Wing: For compatibility trim hostname domains in bsd
output format when matching host lines.
2008-11-07 15:42:01 +00:00
minskim
a325bf28ac Remove trailing whitespace. 2008-11-07 07:36:38 +00:00
dbj
66394bcdd9 ensure mtree_err gets a format string 2008-11-04 23:22:48 +00:00
wiz
1f13db8251 Sort sections, use more markup, sort options, spelling fixes, improve
formatting.
2008-11-04 19:43:04 +00:00
christos
00f6effc9c use localtime_r 2008-11-04 18:52:25 +00:00
reinoud
82af0a3f3e Fix manpage; it showed option -i where it had to be -I 2008-11-04 13:54:10 +00:00
blymn
d08a89fb84 Call tzset() to init TZ information for localtime(). 2008-11-04 10:01:56 +00:00
christos
9d5a7031b8 make sure that we memset the struct tm we pass to mktime and set isdst to -1
so that it will figure out if daylight savings is to be applied or not. From
Anon Ymous
2008-11-03 22:59:51 +00:00
christos
88283dd7fa no point in using int_fast16_t here. 2008-11-03 15:08:16 +00:00
christos
79e7aba61d PR/39857: Bernd Ernesti: Fix broken output caused by a wrong offset. From
Martin Schuette.
2008-11-03 02:44:01 +00:00
christos
1c6aec2060 Import syslogd SoC project by Martin Schuette:
- new syslog protocol api syslogp(3) that supports structured data
	  and draft-rfc timestamps
	- reliable tcp connections with queueing
	- encrypted connections
2008-10-31 16:12:18 +00:00
ahoka
40ccd11cb5 Import changes from the MirBSD Project:
Initialise memory before writing to only part of it,
making sure that the string is NUL-terminated

Allocate the maximum allowed length (including the
terminating NUL byte) for the temporary name string, make sure
the final output is NUL terminated, and copy back the NUL when
overwriting the previously created name (since maxlen is always
at least 1 less than ISO_FILENAME_MAXLENGTH_WITH_PADDING, this
is no problem)

Patches from Thorsten Glaser through freenode.net.
2008-10-30 18:43:13 +00:00
jkunz
fb8ec4c35a Ported alipm(4) and admtemp(4) from OpenBSD. 2008-10-29 17:26:56 +00:00
snj
ffabc8967d s/explicitely/explicitly/ 2008-10-29 17:09:47 +00:00
christos
ec0b686d24 moved to external long time ago. 2008-10-28 14:09:34 +00:00
apb
a02cace51f Use ${TOOL_SED} instead of plain "sed" in "!=" assignments.
This may need more work to prevent warning messages during
"make cleandir" when the commands in "!=" assignments are executed
even though tools may not have been built.
2008-10-25 22:35:36 +00:00
apb
f46c1de7cb Use ${TOOL_SED} instead if plain sed in Makefiles. 2008-10-25 22:27:34 +00:00
christos
bd4f4705da remove genmask completely and correctly. 2008-10-25 22:12:20 +00:00
christos
421f72243a don't set RTAX_GENMASK. 2008-10-25 17:48:13 +00:00
apb
e7b9864dba Move quotation marks to the correct place in eval statements
that were broken by the previous change.
2008-10-22 15:20:05 +00:00
mishka
0678a17226 Perform line feed after printing usage line. 2008-10-22 07:59:43 +00:00
apb
f3f295c281 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:23 +00:00
snj
cf5b9ad4fa Xref netconfig(5). Requested by Martin S. Weber in PR bin/39605. 2008-10-19 21:18:22 +00:00
christos
bdb5cd51ab fix so that we can compile with PIC 2008-10-19 15:22:17 +00:00