Commit Graph

3346 Commits

Author SHA1 Message Date
thorpej 9e4b4a03d7 Need <string.h> for memset prototype. 1999-12-11 18:20:27 +00:00
thorpej bc322cb5f0 Fix printf formats; cast pointer diffs to long, and use %ld. 1999-12-11 18:19:20 +00:00
mrg 2a987cd998 - use symbolic names for mode bits
- use _exit() where we should
- fix spelling mistake
- use vasprintf() in pstatus()
all from freebsd.
1999-12-11 02:01:18 +00:00
mrg 585454b2f2 xref setsockopt (from freebsd) and hosts.equiv. 1999-12-11 01:59:43 +00:00
mrg 2e2dfe5c71 tsk. tsk. document new features i added. 1999-12-10 23:49:03 +00:00
itojun e6d250552f s/.Os kAME/.Os/ 1999-12-10 11:05:10 +00:00
itojun 4adaf7b678 oops, forgot to add the file. sorry. 1999-12-10 11:04:08 +00:00
itojun e8d8a9dd7f sync with more recent KAME.
- more debugging messages
- corect inet_pton() error code check
- don't mix-up "gif10" and "gif0" (due to strncmp mistake)
1999-12-10 06:13:31 +00:00
itojun 192f4042b9 sync with recent KAME. tiny wording fix. 1999-12-10 05:48:51 +00:00
itojun 7201a8f4cd sync with recent KAME. give a better debugging information. 1999-12-10 05:47:51 +00:00
itojun 6baefd92e4 sync with recent KAME.
- more length overflow check for ip6 related parsing
- protocol decode fixes
- add dhcp6 parser

XXX how should we maintain usr.sbin/tcpdump for years to come?
relationship with www.tcpdump.org codebase?
1999-12-10 05:45:07 +00:00
itojun d81f686e11 typo fixes. 1999-12-10 01:09:06 +00:00
itojun 4265f28e51 sync with latest KAME. cleanup on interface type determination. 1999-12-09 15:34:19 +00:00
itojun 119ee78fd0 sync with latest KAME tree. manpage improvements. 1999-12-09 15:30:43 +00:00
itojun 9e8f1055f6 sync with latest KAME. nuke use of ss_{len,family}.
CVsA: ----------------------------------------------------------------------
1999-12-09 15:20:02 +00:00
itojun d9a742bd0d improve debugging functionality.
(sync with latest KAME)
1999-12-09 15:08:33 +00:00
msaitoh 01dc593408 fix the table of the STATE field of "pstat -t" 1999-12-08 22:01:53 +00:00
lukem 8c1445f5dc * cleanup the usage messages:
- put `usage' at the start of each message
	- put a space between the option and arg in [-x foo]
* fix command parsing for when a two word command is invoked without
  args or with an invalid second arg so that a more appropriate error
  message is printed.
1999-12-08 21:45:54 +00:00
hubertf 73332d1d4c Make MKDIR just be /bin/mkdir, without -p 1999-12-08 18:22:54 +00:00
hubertf f925a43bdf - Only use strlcpy() on systems that have it, i.e. >=1.4K. This makes
this working again on 1.4 systems.
 - Revert last change to argument passing which broke "user del",
   "user mod", ...
1999-12-08 18:12:16 +00:00
soren 5220b33459 Add user(8). 1999-12-08 09:19:04 +00:00
itojun 6ac6bbb103 sync with more recent KAME. 1999-12-08 04:54:15 +00:00
itojun 92732ebc68 netbsd rcsid fix. 1999-12-08 04:51:04 +00:00
itojun 9f2f48b6ef fix pathname to /etc/rtadvd.conf.
NetBSD PR: 8966
1999-12-08 02:31:26 +00:00
soren 6cc6a03447 Add adduser(8) for compatibility. 1999-12-08 00:01:36 +00:00
soren e7d9a82c6f 'If it comes from a client that already knows its address and is not
requesting a broadcast response, and we can unicast to a client without
using the ARP protocol, sent it directly to that client.'

Make some ARCS firmware happy.

Many thanks to Ted Lemon for debugging this.
1999-12-07 23:23:16 +00:00
wennmach 914178b225 code.c is no longer used, we use strsvis instead. Removed prototypes
from extern.h
1999-12-07 18:42:06 +00:00
mrg 5b6d0e7e39 - add timeouts to displayq(), rmremote(), sendfile() and response(),
and use these timeout in the lpq, lpd and lprm programs.

these stop hung remote printers that accept tcp connections but do
not process jobs from hanging the whole system and letting the sysadmin
have a clue about what is going on with this rogue printer.

- add a -r flag to lpd to allow `of' filters for remote jobs.

i know there are ways around this, but i just don't care.

- add a -f flag to lpf to add missing carriage returns.

useful when printing UNIX files to an, eg, LaserWriter that wants CR's
as well as LF's in raw text.  stair-stepped text is no fun.

- implement child process accounting: we just have a limit on the number
  of children we can have (settable by the sysadmin), and we sleep when
  this number is reached.  this can reduce malicious not-so-malicious
  attacks on the print server by a rogue remote client..

- use setproctitle() where appropriate so the sysadmin has a clue about
  what each of the lpd's here are doing.

this was useful to help diagnose a problem (that the above child process
accounting change reduces the lossages of) where a rogue client was
attempting "lpq" operations on one stuck queue in rapid succession,
causing the lpd server to be extremely slow, due to the large number
of lpd processes running.


i have been running these changes in production for about a year.
1999-12-07 14:54:44 +00:00
ad 8ad73e9274 RCSID police. 1999-12-07 11:30:27 +00:00
lukem bbd13d34a8 * don't dump core if run without args
* use strlcpy() instead of homegrown strnncpy()
* sort #includes
1999-12-07 10:42:12 +00:00
lukem 02bc52bd3e remove unused STRNCPY macro 1999-12-07 10:37:57 +00:00
lukem dda92ed7f3 missing , 1999-12-07 10:25:33 +00:00
lukem c7a4f3b509 use (c) instead of 8bit copyright symbol... 1999-12-07 10:14:01 +00:00
simonb 837589f349 Fix up a few calls to usage(). 1999-12-06 23:11:27 +00:00
simonb e919f8db3f Use FILES= to install example files instead of home-grown install rule.
Fix DPADD usage.
1999-12-06 22:52:18 +00:00
simonb d193cbd060 Make this compile with WARNS=1. 1999-12-06 22:50:46 +00:00
simonb faba922c92 Make ./etc/skel and ./usr/share/examples/usermgmt with mtree, and don't
create the directory in the user(8) Makefile.
1999-12-06 22:44:47 +00:00
simonb a4bb8cea12 Make this compile with WARNS=1. 1999-12-06 22:29:02 +00:00
simonb 7506323401 Use LINKS+= not LINKS=. 1999-12-06 22:28:12 +00:00
agc 7beb00d627 Fix typos. 1999-12-06 21:39:20 +00:00
agc af1b2fe493 Add SVR4/Solaris-like useradd/usermod/userdel functionality, and
groupadd/groupmod/groupdel functionality, along with two front-end
utilities, user(8) and group(8).

Based on the addnerd package, but most of the interface has been
completely rewritten, and suggestions from simonb and mrg have been
incorporated.
1999-12-06 21:31:42 +00:00
itojun 4ba0077ac0 be more friendly with non-IPv6 kernel. 1999-12-06 01:26:26 +00:00
jdolecek 5986e9b6ee main(): g/c variable errs accidentaly introduced in last commit, rename
'i' to 'opt'
1999-12-05 22:22:05 +00:00
jdolecek 0e29a42af3 Change the formatting of output so that entries with host:user longer than
24 characters would be displayed correctly.
Fixes bin/8880 by Brian Stark <bstark@uswest.net>.

While here, convert code to use getopt(3) and do some const poisoning.
Also g/c variables uid and euid, they are no longer needed after
the split of ../common_source/common.c
1999-12-05 22:18:40 +00:00
jdolecek b86257129c put fatal() and a some of variables used independantly of other functions
in common.c into separate files - this slighly cuts down size of pac(1)
not that it's really significant, but every bit counts ....
1999-12-05 22:10:57 +00:00
itojun 9d1c5f0b5c IPv6 support in syslogd. actually we need library update as well.
NetBSD PR #8934 from Feico Dillema <dillema@acm.org> (with memory leak fix).
1999-12-02 16:17:29 +00:00
wennmach e1bf4e526c Use strunvis instead of homebrewed "decode" routine 1999-12-01 22:14:46 +00:00
wennmach dff19e227b Now that we have strsvis, use it. 1999-12-01 22:12:52 +00:00
hubertf d11f27480e Not without my handbag. (Forgot this in last commit) 1999-12-01 15:15:29 +00:00
hubertf 402f80b9da - Comment code
- Minor re-indenting
 - Fix printing of @ignore in pkg_info (did this ever work?)
 - Fix installing of local wildcard dependencies (unused in main system)
 - Fix deleting of packages that depend on wildcard dependencies
   (fexist() is not enough there :-)
1999-12-01 14:51:50 +00:00
hubertf 28f1032831 Document the current round of the game. :-) 1999-12-01 05:08:34 +00:00
hubertf 2b494f847d Don't be verbose unnecessarily. (Instead, just remove this stale debug
code)
1999-12-01 05:08:10 +00:00
sommerfeld 772dc3bc64 nope, those are unsigned long longs; correct accordingly.. 1999-12-01 03:40:51 +00:00
sommerfeld 71b188db88 Render LL128-safe (fixing printf formats) 1999-11-30 21:13:46 +00:00
veego 5ceefc298e Backout the last change. 1999-11-30 20:34:51 +00:00
veego 626fb4bb79 ndc is now a binary so we don't need the 'exec' anymore. 1999-11-30 20:18:11 +00:00
sommerfeld 3e6c42c11a Bugfix: deal with ${CC} containing spaces. 1999-11-30 18:28:16 +00:00
ad 73f0c424f5 - Fix location of RCS Id string.
- It's now syslogd.pid, not syslog.pid.
1999-11-30 12:08:49 +00:00
hubertf ecf89794f5 Put support for @src back in.
For users who use private packages that use it. (Hi Bill!)
1999-11-29 20:09:54 +00:00
hubertf 406791739c Add code to include the size of a package into both the
installed version and binary packages. The size can be queried then
via pkg_info:

        xfeyrer @ noon% pkg_info -s xv
        Information for xv-3.10apl1:

        Size of this package in bytes: 4670692


        xfeyrer @ noon% pkg_info -S xv
        Information for xv-3.10apl1:

        Size in bytes including required pkgs: 14610165

While doing work on the size code, support for the @src directive was
removed (formerly enabled with the pkg_create -s switch, but unused in
our pkg system).  The new pkg_info -s and -S switches were tested on
installed, local (file) and remote (ftp) packages.

In bsd.pkg.mk, take special care for pkg_* versions that do not have
the pkg_create -s and -S switches and do not record size information
there.
1999-11-29 19:48:44 +00:00
itojun 879146211f align stat results better. 1999-11-29 13:53:00 +00:00
itojun 0641b08184 add cnwctl(8), a control program for cnw interface.
from bsdi/freebsd-pao cnwctl(8).
1999-11-29 12:55:06 +00:00
itojun 876c4c29f7 cnw driver controller, from FreeBSD/PAO2 repository 1999-11-29 12:32:17 +00:00
veego 9f3c20bc0f Use the libc md5 function. 1999-11-28 17:39:06 +00:00
veego 5e5665ea10 Remove commented lines which are not used here. 1999-11-28 17:02:27 +00:00
veego ff8362d781 Install named.conf again into /usr/share/examples/named.
Somehow it vanished when I updated the bind version.
1999-11-28 16:58:16 +00:00
lukem 683d885daf more gracefully detect _NG_ERROR 1999-11-28 04:40:21 +00:00
mrg 6663793e96 add some debug messages. 1999-11-27 14:51:49 +00:00
simonb da434805dc Remove update(8) now that we have trickle-sync. 1999-11-25 01:20:27 +00:00
itojun ad663a8d32 refrain using non-standard .Sh. use .Ss. 1999-11-21 17:28:23 +00:00
veego f038a8aeeb Add the missing all-named-xfer all-ndc: all-named target. 1999-11-21 16:55:23 +00:00
itojun 395f032639 s/make/${MAKE}/ 1999-11-21 16:46:33 +00:00
itojun b7a7f5becf use print-objdir instead.
Suggested by: tsubai
1999-11-21 16:39:54 +00:00
itojun 5d6d47c96c fix compilation of named-xfer and ndc, when you do "make obj" (including
"make build" from the top).

XXX
if you do "make obj", you have to reference:
	bind/named/obj/pathnames.h
from either of them by using relative path:
	${.OBJDIR} = bind/named-xfer/obj or
	${.CURDIR} = bind/named-xfer
-I${.OBJDIR}/../named was included but is not the correct one.
I used -I${.CURDIR}/../named/obj, but I'm not sure if it is the right way.
1999-11-21 16:26:03 +00:00
veego b4f26a2c2c Ups, remove the LDSTATIC which was only there for tests. 1999-11-20 20:42:39 +00:00
veego 3c25783fec Use the bind source from basesrc/dist/bind. 1999-11-20 19:47:10 +00:00
abs 3214d69367 Our db btree(3) implementation is tuned for ordered insertion, so pipe
through sort before makedbm.
This drops Erik Rungi's <rungus@openface.ca> passwd.byname generation for
3000 entries from 25-30 seconds down to 0.75 seconds.
1999-11-19 16:55:25 +00:00
bouyer 689cdcf64b Adapt printf formats for 64bit counters. 1999-11-19 10:45:23 +00:00
mrg b016d0483c fix MKSHARE=no 1999-11-19 04:20:14 +00:00
enami 82d7115cf2 Don't pass so many args to .Nd macro. It just overflows. 1999-11-19 01:12:39 +00:00
kristerw 2220c68654 Typos (from OpenBSD) 1999-11-18 19:02:31 +00:00
enami 2ca792df74 - Sync mount options and vnode flags with reality.
- Use i_e2fs_rdev.
- Print per filesystem data only if an inode is associated to the vnode.
1999-11-18 08:34:38 +00:00
enami 041d1aa9b5 Cosmetic changes; fix indentation and usage of white spaces. 1999-11-18 08:27:39 +00:00
enami c1fd241001 The field to print vnode tag isn't necessary so wide. 1999-11-18 03:08:38 +00:00
fredb 60fae50bc1 Don't preserve uids or permissions of checked out files (MTREE, DEINSTALL,
INSTALL) into package tarballs. Files installed by the package itself are
not affected.
1999-11-18 02:05:16 +00:00
jonathan 436062d739 Update to 4.0.98f. fix last remaining references to xntp. 1999-11-16 03:53:21 +00:00
mjl f214fa323a From FreeBSD bin/14844 (slightly modified): Due to signed calculations
with the packet size, a short packet would trigger an infinite loop
on little endian machines.
1999-11-15 15:59:24 +00:00
mjl 2c3c567c94 From FreeBSD misc/14850: When communicating with a BOOTP server,
dhclient would fail to configure the interface and crash. Added check
for lease time option present before using that value.
1999-11-15 15:50:16 +00:00
sommerfeld 3fc2334c5d After some light testing, it worked for me, so...
Commit mrg's fix from pr8791: don't un-export filesystems which are just going
to be re-exported; instead, do additions, then deletions.
1999-11-14 14:37:16 +00:00
wennmach 5677540edf Add __RCSID() 1999-11-12 14:42:35 +00:00
abs 9c1ad975e8 Check return value from realpath() to avoid a NULL pointer being passed to
alloc_lpkg(). Avoids coredump if current directory is invalid.
1999-11-10 18:51:47 +00:00
drochner b12f1e565f print a nicer error message if a screen is already configured 1999-11-10 16:34:58 +00:00
wennmach 7b5b69d3cb Add RCS tag 1999-11-09 22:41:53 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
drochner 68062ca8dc prototype encode()/decode() 1999-11-09 10:16:55 +00:00
wennmach 7db0eb0492 Encode file names using strvis(3) when creating a specification.
Escape white space characters and `#' characters. Do the inverse
when reading specs.

This is a temporary fix until we have strzouvis(3) (or some such)
which is an improved version of strvis (taking an additional list
of characters to encode).

Fixes PR 5006 and PR 7663
1999-11-07 20:23:01 +00:00
erh 6752f572d8 Remove ELFNAME defines since they are defined in sys/exec_elf.h 1999-11-04 02:00:17 +00:00
hwr e00fb667a6 Change bogus section headers. From PR 8735. 1999-11-03 21:44:37 +00:00
lukem 1e0635835d fix title. noted by Danny Thomas <D.Thomas@cmcb.uq.edu.au> in [bin/8734] 1999-11-02 10:30:38 +00:00
veego 09d42ef262 Use BIN{OWN,GRP,MODE} to create the directory and not DOC{OWN,GRP,MODE}. 1999-10-31 22:46:17 +00:00