Commit Graph

4256 Commits

Author SHA1 Message Date
lukem c2aa46e7c2 use %ll_ instead of the less standard %q_ 2001-01-05 03:27:26 +00:00
lukem 2537f730fa always use %lld for INT64_FORMAT (rather than %ld on __alpha__ and __sparc_v9__
and %qd on everything else), and always cast the vars to (long long).
2001-01-05 03:21:53 +00:00
shin 745fabb2ce MACHINE_ARCH for MIPS machine is "mipsel" or "mipseb". 2001-01-05 01:35:45 +00:00
garbled fbbe4d12db Initial import of sushi.
Sushi is an interactive, menu-based program that is designed to aid
the user or administrator with administrative and complex tasks on thier
machines.

Sushi provides a menu of various functions that the user can perform on
his or her machine.  Once the user selects a desired function, the
function is either performed outright, or in most cases, the user is
asked to fill in a simple form with required and option information,
which is then processed by sushi, and the action occurs.

The programming interface for sushi is very simple.  There are
directories containing various files, such as menu indexes, or forms for
the user to fill out.  These files are interpreted by sushi to generate
the menus the user sees on his/her screen.  When the form is filled out
by the user, the entries are passed as command-line arguments to a
program, or script contained in one of the subdirectories.  In this way,
it is possible to add new entries to the sushi menu structure, by simply
adding a new menu item, form and script, the binary does not need to be
recompiled to take advantage of this new menu.
2001-01-05 01:28:33 +00:00
itojun 4519a2cf89 libc has clnt_sperrno(), no need to pull it into libamu.
this also raises problem when we try to link amd statically.  PR 11187.
bumps libamu major.
2001-01-04 14:21:09 +00:00
itojun 92ee339d1c sh3 split 2001-01-04 09:43:05 +00:00
itojun 11a8150bad unbroken it. dev/i2p/iopvar.h requires sys/device.h for sizeof(dv_xname).
not sure if it is the right fix or not.
2001-01-04 06:16:02 +00:00
itojun 06b30834dd ${PRINTOBJDIR} 2001-01-03 15:57:00 +00:00
itojun 9857da78ba s/make/${MAKE}/ 2001-01-03 08:43:05 +00:00
hubertf 6e6337b43d * findmatchingname():
When the bzip-pkg handling was introduced, a dewey pattern (foo>1) may get
   a character-class-pattern attached (.t[bg]z), and the code was not prepared
   to match that. I've special-cased handling of character-class pkg suffixes
   for ".t[bg]z", and when scanning a dir in findmatchingname() now both the
   'first' part of the pattern (e.g. "foo>1") and the suffix (e.g. ".t[bg]z")
   must match the file, hence the two pmatch() calls.

 * findbestmatchingname_fn():
   Caught a case where ".t[bg]z" was not properly handled. Must do the same
   suffix-processing again here!

Fixes PR 11856 by Dan McMahill <mcmahill@mit.edu>
2001-01-01 22:07:35 +00:00
martin 8679c35174 More va_list vs. _BSD_VA_LIST_ lossage 2000-12-30 21:45:44 +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
augustss 26ebe4297f Add a flag to show the device driver(s) associated with each device. 2000-12-30 13:57:44 +00:00
augustss 7f426f36c1 ANSIfy. 2000-12-30 13:50:43 +00:00
itojun 4a49026fe0 move .PATH after bsd.prog.mk 2000-12-29 05:22:07 +00:00
itojun 3207cfe8dd install sample configuration files into /usr/share/examples/racoon.
make variable "SBIN_RACOON" will build static racoon binary, and installs
it into /sbin (nonstandard)
2000-12-29 03:16:39 +00:00
itojun 31daf71078 visit usr.sbin/racoon in build process (if MKCRYPTO != no). 2000-12-29 02:41:55 +00:00
itojun 54e4101852 synchronize with latest tcpdump.org tree 2000-12-29 02:38:23 +00:00
itojun 66927d4789 move racoon build framework from sbin/racoon to usr.sbin/racoon. 2000-12-29 02:33:38 +00:00
thorpej 7490542205 Document the name forms of the ICMP and TCP field offsets/values
recently added to libpcap's compiler.
2000-12-28 22:43:39 +00:00
wiz 1d1f43e05c Improve handling of -l with -m, and update documentation.
Based on an idea by Alistair Crooks in bin/11707.
2000-12-23 17:19:48 +00:00
wiz a73ca31ff8 Clarify what happens if -d is specified without -m.
Fixes second part of bin/11707.
2000-12-23 16:30:21 +00:00
wiz 39df6581fe Fix moving a user's home directory with 'useradd -md /new/home/dir user'.
Clarify code (newpwp was referencing the same struct as pwp).
Fixes first part of bin/11707.
2000-12-23 16:29:35 +00:00
itojun 8537da23ad use strlcpy/at throughout the code. more strct argument validation.
revoke setuid privilege earlier.

sync with kame.
2000-12-22 15:12:04 +00:00
cgd 8d81e0e116 __CONCAT does token pasting, not string concatnation. if something like:
__CONCAT("foo","bar");
actually works to concantate strings, it's because the preprocessor expands
it into "foo""bar" as separate strings, and then ANSI string concatenation
is performed on that.  It's more straightforward to just use ANSI string
concatenation directly, and newer GCCs complain (rightly) about misuse
of token pasting.
2000-12-20 01:34:39 +00:00
cgd 94e108c80f avoid accidental use of ANSI C trigraphs. 2000-12-20 01:30:26 +00:00
cgd d87582beba avoid use of ANSI C trigraph ??) 2000-12-20 01:29:21 +00:00
itojun 10fb60e4ee do not declare errno on our own. from: Patrick Welche <prlw1@newn.cam.ac.uk>
sync with the latest kame tree.
2000-12-19 23:55:02 +00:00
nathanw 95ecff2f0d Pull in ${DESTDIR}/usr/include before ${DESTDIR}/usr/include/openssl, so
that we get the system's err.h, not openssl's.
2000-12-19 21:18:32 +00:00
scw ab70197801 Select the object format in the Makefile, to allow selecting on
%MACHINE when deciding what object formats to support.
2000-12-18 20:43:58 +00:00
mike ba39d0a858 Correct display of invalid username error and cache duplicate password
lookup (fixes PR#11695).
2000-12-17 22:47:14 +00:00
thorpej 893fdc80cf Descend into altq. 2000-12-17 03:06:53 +00:00
thorpej 28f0042b51 Build glue for ALTQ programs. 2000-12-16 18:57:34 +00:00
thorpej d4bf5787dc Token bucket regulator config program for altq. 2000-12-16 17:53:19 +00:00
thorpej 8726857e6b Import the altq status program. 2000-12-16 17:40:16 +00:00
thorpej 09dce659bf Import the altq configuration daemon. 2000-12-16 17:39:40 +00:00
thorpej 95a6556014 Import the altq library. 2000-12-16 17:38:07 +00:00
lukem 1d0a6f62b8 revert 1.51 and 1.52 (_KERNEL_foo stuff), due to loud objections from
a couple of people.  we'll just have to go back to adding this manually
to our config files...
2000-12-14 22:14:45 +00:00
scw eee03f150e No need to initialise a global to zero. 2000-12-13 23:00:32 +00:00
ad ad2150de6f Remove debug printf. 2000-12-13 12:34:02 +00:00
enami f0f66cd139 ..., and fix new warning on i386. 2000-12-13 11:07:16 +00:00
mrg e7d5c1b188 fix LP64 warning. 2000-12-13 10:56:43 +00:00
enami 2285fa8eab Print address of lower vnode of layered fs vnode. 2000-12-13 05:50:33 +00:00
enami 7ec21d4438 Use va.va_type instead of va.va_mode to determine if a nfs vnode is a
deivce node or not, since latter contains permission bits only.
2000-12-13 05:34:55 +00:00
hubertf 3d76df0ee0 Strip not only .tgz but also .tbz etc. (missed from last commit) 2000-12-13 03:49:56 +00:00
hubertf 5382dffae7 * Accept ".tbz" as an alternative pkg suffix to ".tbz" for pkg_add and
pkg_info
 * In pkg_create, compress with bzip2 if a .tbz suffix is given
 * Fix pkg_info to work via ftp, either via URL specified on command line
   or via one made up from PKG_PATH (if set)

XXX ALWAYS tacks on ".t[bg]z", NOT ".t[gb]z" !!!
2000-12-13 03:17:53 +00:00
lukem ea03d7ba8e change KERNEL_foo -> _KERNEL_foo, as suggested by matt green 2000-12-12 17:49:20 +00:00
lukem f125ced5a1 Add option `KERNEL_foo', where `foo' is the basename of the build directory.
This will get added to the Makefile's IDENT= as -DKERNEL_foo.
2000-12-12 08:46:02 +00:00
ad 3998cc1155 Nits. 2000-12-11 19:33:55 +00:00
ad c87303f168 Put back missing line break. 2000-12-11 14:38:43 +00:00
ad d299ad2a0f Fix compiler warnings. 2000-12-11 13:58:46 +00:00
ad 18900b7349 Note a bug. 2000-12-11 13:55:16 +00:00
ad 9af5448e0a Add a basic control program for iop devices. 2000-12-11 13:48:52 +00:00
thorpej 1c3d23d12c More IPv6-friendliness. 2000-12-09 22:39:12 +00:00
thorpej c7b5409a74 Rewrite this to use getaddrinfo(), and to use the canonical name of the
host rather than the hostname as returned by gethostname() if the hostname
does not appear to be fully qualified.
2000-12-09 00:47:57 +00:00
tron 7ebe3b4a17 Add a new "-d" option which allows to define the directory of the
password file as the "-d" options of "pwd_mkdb" and "vipw".
2000-12-08 22:23:14 +00:00
tron f937707eab Improve description of "-d" option. 2000-12-08 22:21:44 +00:00
tron 6deb512a7c The "-m" option makes onyl sense with at least one argument. So enforce
that and update the documentation accordingly.
2000-12-08 21:51:21 +00:00
tron 48698d8229 Remove obsolete "domake" variable. 2000-12-08 21:24:16 +00:00
tron e5d0716506 Fix broken argument parsing:
- "-m" shouldn't option be passed to "make".
- Avoid buffer overflow while construction shell command to invoke "make".
2000-12-08 21:09:37 +00:00
thorpej e0d4418a25 Convert to TI-RPC, modeled after mountd(8) since we do host-based
access checking (via libwrap) like mountd(8) does.

Also, garbage-collect a bunch of stuff that is normally created by
rpcgen(1) that we'll never use in this program.
2000-12-08 20:08:43 +00:00
wiz 89d963e947 Don't try to create or move directory if only '-d' is given (man page
says '-m' is needed for that). Problem reported by Johnny C. Lam.
2000-12-07 17:44:03 +00:00
tron f4136e8234 Document ``/'' as default directory to avoid confusion of the users. 2000-12-07 12:55:06 +00:00
tron d78c1c9e2d Back out last change on sugestion by Klaus Klein:
While it was technically correct it was confusing for the user.
2000-12-07 12:53:14 +00:00
tron 32a56dbd39 Add a new "-d" option which allows to specifiy the root directory of the
password database.
2000-12-06 14:04:25 +00:00
tron 1bfef38d9b The default directory is "", not "/". 2000-12-06 13:54:08 +00:00
itojun aac23d3263 correct pathname 2000-12-04 16:11:56 +00:00
itojun 1b5622c854 correct location of config file 2000-12-04 16:11:07 +00:00
itojun c9236bb0cc $KAME$ cleanup. address PR 11615 (CMSG_SPACE should be CMSG_LEN).
lots of stabilization/spec cleanup.  sync with kame.
2000-12-04 07:09:35 +00:00
itojun b1ba1c6a53 $KAME$ cleanup. address PR 11616 (CMSG_SPACE should be CMSG_LEN).
couple of stability/protocol conformance fixes.  sync with kame.
2000-12-04 07:05:47 +00:00
itojun a2ca80c86b $KAME$ cleanup. address PR 11616 (CMSG_SPACE should be CMSG_LEN).
sync with kame.
2000-12-04 07:04:37 +00:00
itojun 8b87a48e0e $KAME$ cleanups. sync with kame 2000-12-04 07:03:17 +00:00
matt a2877b394c Don't emit MACHINE/MACHINE_ARCH. Instead emit a TARGET_MACHINE=machine
instead.
2000-12-03 07:06:15 +00:00
matt 5cde4cf735 If a port-specific Makefile.<port> doesn't exist, try a arch-specific
Makefile.<arch>.
Emit MACHINE=<port> and MACHINE_ARCH=<arch> to the emitted Makefile.
2000-12-02 23:01:54 +00:00
is e077acfb61 Document that text (console) modes need a depth field of 4. 2000-12-02 21:58:10 +00:00
hubertf 1e2914d00b Document that the path to the configuration file given on the command
line must be absolute, unless the -d option is given on the command line.
2000-12-02 02:15:34 +00:00
simonb 0833efd07d Remove extern variables and functions now declared in dkstats.h. 2000-12-01 02:10:22 +00:00
simonb 80bd9216d2 ANSIfy. 2000-11-30 23:59:03 +00:00
hubertf 4b8a7a0e49 Fix pkg_info w/ URLs (*sigh*) 2000-11-30 10:09:15 +00:00
mrg 6ce96c999f several clean ups:
- don't include eeprom support on sparc64.
	- work out if we are eeprom or openprom from the results of open()
	and/or ioctl(), rather than grovelling the kernel.
	- move all eeprom specific code to eehandlers.c
	- update manpage for sparc64 usage, remove delete -N switch

with these changes, eeprom(8) no longer needs to be setgid.
2000-11-28 22:31:37 +00:00
sommerfeld 057fcccd0c Default crontab size limit is 256k, not 32k; correct documentation to
match code.
2000-11-28 14:06:13 +00:00
mycroft 9ff73e166a Oops; the increment needs to be in check1pkg() for the case where the user
specifies a list.
2000-11-28 05:23:35 +00:00
mycroft 23451da968 pkgcnt was incremented twice during a `check'... 2000-11-28 05:21:57 +00:00
hubertf fc8a285aa2 Fix timeout in expect():
The FTP coprocess formerly wrote the output of the "get | tar vxf -" pipe
to stderr, which resulted in no output to the feedback pipe (stdout), and
thus the timeout was not updated for any line printed by the "tar" process.
This was now changed to also feed back the chars to the expect() routine,
updating the timeout handler. The "also" part is implemented by passing
the output through "tee /dev/stderr".

At least NetBSD and Solaris have this, so no problem there.

Thanks to Frank van der Linden for helping me to debug this.
2000-11-28 01:16:01 +00:00
mycroft 04adf420b1 Don't terminate the loop after getting a short packet, either. 2000-11-27 17:36:19 +00:00
mycroft a23cc61626 For BPF, we must loop on receive_packet(). BPF may return multiple packets at
once, and we obviously won't get a select() hit for each one in that case.
2000-11-27 17:33:02 +00:00
mycroft 33515cb532 Make sure to BPF_WORDALIGN() the buffer pointer for each packet, as BPF does in
the kernel.  Otherwise the pointers get out of sync and dhcpd goes nuts.
2000-11-27 17:08:16 +00:00
hubertf ec58d85250 Don't mkdir("/usr/tmp") in a desperate try to get some space.
If it's there, use it. If it's not there - bad luck.

Pointed out by Simon Burge <simonb@wasabisystems.com>.
2000-11-26 03:12:01 +00:00
jdolecek c40ad1440d cast isprint() parameter to (unsigned char) - it looses if the character has high
bit set when the architecture is using signed char by default
This fixes bin/11556 by Michael Eriksson.
2000-11-24 09:53:36 +00:00
itojun 50ac5d898b move rcsid to the top 2000-11-24 07:42:07 +00:00
veego 048d058532 Fill in 26 defines for MNT2_NFS_OPT_ which the configure script didn't
find and were lost in the upgrade of am-utils.
2000-11-21 12:14:18 +00:00
enami 6bc7e18094 Don't try to deallocate an object pointed by NULL pointer. Instead,
deallocate the right one.
2000-11-21 03:47:41 +00:00
wiz 45b07c3e8f Since amd compiles with WAUDIT=2, include it in Makefile. 2000-11-21 02:03:26 +00:00
is b002f5435b With RARP, MAC asks, and IP answers. Fixes PR 11330 by Thilo Manske, who
also provided the fix (modulo formatting).
2000-11-20 14:59:30 +00:00
tron f8f9801395 Use empty string as default prefix so that e.g "/etc/spwd.db" is used
instead of "//etc/spwd.db".
2000-11-20 14:09:36 +00:00
wiz 20845d16f4 remove outdated comment 2000-11-20 01:58:43 +00:00
wiz c9669422d2 Make config_local.h more cross-compile safe. Thanks simonb! 2000-11-20 01:56:13 +00:00
wiz d53f0cf553 Fix thinko on my part (we do have setitimer). 2000-11-20 01:23:14 +00:00
wiz 0f1a444c28 restore ID tag (forgot removing $$) 2000-11-20 00:27:23 +00:00
wiz e5d9f656ce Replace old build structure with new reach-over one. 2000-11-20 00:24:41 +00:00
wiz 4f035159de Import of amd reach-over Makefiles for using the sources in dist/am-utils. 2000-11-20 00:16:18 +00:00
bouyer 9c9d109bdd Fix bin/11253: seg-fault in mopd
Once we found the correct slot, make sure dle points to it. dle was left
pointing out of the array by the for(;;) loop.
Fix from Ken Wellsch <kwellsch@tampabay.rr.com>
2000-11-19 16:40:16 +00:00
mrg 7996c8de3a de-__P-ify. 2000-11-19 11:15:01 +00:00
cgd a1a91fd28f if there are no locators or parent, don't output those arrays. (Sometimes
you really want no devices whatsoever.  In that case, you get unused
static var warnings from the compile.)  Reviewed by sommerfeld.
2000-11-18 00:51:29 +00:00
msaitoh c1fd8f00d4 Add forgottern addarg(&al, NULL, 0) before execve() to prevent coredump. 2000-11-16 08:33:33 +00:00
tv a32617f770 This is now 8.2.2-P7, so update VER. 2000-11-13 22:45:05 +00:00
perseant a3bb9e16b4 Report, and detect and correct inconsistencies in, the number of clean
segments.  Patches from Jesse Off <joff@gci-net.com> (PR #11470).
2000-11-13 00:30:48 +00:00
martin d045d83e39 Make ntp work on sparc64 (workaround for toolchain problems) by
adding -msoft-quad-float.
2000-11-12 19:48:55 +00:00
wiz 18c121ba47 ispell 2000-11-12 15:32:57 +00:00
itojun 980886f151 do not advertise dynamic/cloned routes 2000-11-10 18:15:57 +00:00
itojun 7da1bb7a9c synchronize with BIND 8.2.2-P7.
- resolve conflicts (there are many conflicts with $NetBSD$ tags -
  dunno why they happen).
- type pedant (couple of typecasts).

correct yacc-generated file handling.  remove bin/named/ns_parser.h,
use the header yacc generates at compilation time.
2000-11-10 09:56:56 +00:00
wiz efad173586 Add amd.conf.5 from dist/am-utils/scripts here, and install it.
Fixes PRs 5051, 7524, 8999, 10814.
XXX: Why are amd & friends not using reachover Makefiles, but a copy of
the source? This should be fixed...
2000-11-08 12:00:48 +00:00
itojun bfef63a365 do not print "PIM" twice 2000-11-08 07:23:54 +00:00
tron 68fa36f81f Avoid segmentation fault if "dns_zone_lookup()" is called with an empty
string as name. Problem noted by Simon Burge.
2000-11-07 13:21:36 +00:00
lukem 279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
lukem ebcd47ebf3 use .Xr 2000-11-07 05:44:50 +00:00
lukem 6ccf8e332e format the option descriptions in a more standard (and imho readable) style 2000-11-05 03:05:48 +00:00
simonb 3854f3f705 Fix behaviour of 'useradd -m': it is now a fatal error if the target home
directory already exists.  Previously new skel files from /etc/skel were
copied and permissions/ownerships changed even if the directory already
existed.
2000-11-04 04:31:43 +00:00
tron dd8effead0 Adapt to the new line discipline scheme. 2000-11-02 21:40:37 +00:00
wiz 341453a017 Remove duplicate entry for -d option, fixing misc/11414.
Sort options while I'm here.
2000-11-02 18:16:43 +00:00
taca 6a3b366a8c Patch from the ISC DHCP CVS repository, fix dhclient problem,
"Re: dhclient still taking up 95% of CPU" in current-users:

: Fix for bug #416: If a server hands dhclient an insanely large
: lease time, select() can get passed a too-large timeout, causing it
: to return EINVAL.  This fix restricts the select() timeout to one day.
2000-11-02 03:14:21 +00:00
taca e3e05b89d4 Patch from the ISC DHCP CVS repository:
: Tweak omapi_protocol_connect() so that authenticators are sent in the
: proper order.
2000-11-02 03:14:02 +00:00
simonb a2358fe791 Remove some debugging cruft in the removal of user home directories
accidently left in from revision 1.25.
2000-11-01 22:35:30 +00:00
simonb dc598d2a0c Run a "chmod -R u+w <newhomedir>" after copying files from skeldir.
Noted by Hubert Feyrer in private mail.
2000-11-01 22:29:10 +00:00
simonb 2ad83f6dcf Don't let usage messages wrap around on an 80 column terminal.
Problem noted by Hubert Feyrer in private mail.
2000-11-01 22:18:22 +00:00
itojun cd0d2f37f0 backout previous, it was redundant 2000-11-01 06:19:35 +00:00
itojun 5e5edf3d3a clean unnecessary yacc-generated source. 2000-11-01 06:17:36 +00:00
hubertf efeb1d1e82 Don't swallow '%' in file/directory names.
Patch submitted in PR 11352 by Brook Milligan <brook@biology.nmsu.edu>
2000-10-31 23:47:05 +00:00
he 70a24dc7c0 Change from sprintf() to snprintf() where we may print externally
supplied data of unknown length.
Changes adapted from FreeBSD-SA-00:61.
2000-10-31 12:17:07 +00:00
tron b56cc4466d Patch from Takahiro Kambe to fix crashes if dynamic DNS updates
are used. This fixes PR bin/10665 by Mason Loring Bliss.
2000-10-29 22:55:57 +00:00
hubertf 4f394222d2 Pull in /etc/mk.conf unconditionally, not only on SunOS.
Discussed with Alistair Crooks.
2000-10-27 11:49:23 +00:00
wiz 3204ca286c pcvt is dead.
XXX: better wording for lines 99-101?
2000-10-27 11:31:32 +00:00
garbled 9c6cafac02 Change direct calls to make to ${MAKE} 2000-10-26 06:00:48 +00:00
hubertf 931aadfd80 s/bsd/BSD/ 2000-10-25 15:55:44 +00:00
jmc a6e6938ba6 Needed bsd.own.mk before MKDOC gets defined. subdir picks it up too late 2000-10-23 06:45:18 +00:00
simonb 45ad1d18bb Only descend into the doc directory if ${MKDOC} != no. 2000-10-22 17:17:08 +00:00
mycroft f5abf3cd7a Introduce some caching. 2000-10-21 00:55:23 +00:00
fvdl b2475f7e19 Make showmount -e work on lp64be. From Matt Green. While at it, also
fix another occurence of passing &int to xdr_long.
2000-10-20 11:49:40 +00:00
assar e89ad55da9 cast pw_change (a time_t) into long and printf it as %ld 2000-10-18 01:45:12 +00:00
taca 5dea32f506 Make it compile again. 2000-10-17 16:12:20 +00:00
taca 0cb6a7cf94 Merge 3.0b2pl9 with head. 2000-10-17 16:10:38 +00:00
taca 70a42dc992 DHCP 3.0 Beta 2 Patchlevel 9 2000-10-17 15:07:41 +00:00
kleink eafe08d5e9 Don't make references to _10Mb/s_ Ethernet; from Christian Weisgerber in
PR bin/11239.
2000-10-17 12:23:03 +00:00
simonb 6dfb84a930 For userinfo - if a password change or expiry time_t is 0, print "NEVER"
instead of some date around Jan 1, 1970.
2000-10-17 05:43:10 +00:00
simonb 5114e81f10 Handle -G for the useradd case (usermod was already correct). Also
show warning if a non-existant group is specified.

Patch from PR bin/11123 by David Edmondson.
2000-10-17 05:31:50 +00:00
simonb 051741ede8 Document the skel-dir and shell default settings.
Clean up skeleton dir list.

Part of fix for PR bin/10985.
2000-10-17 04:54:43 +00:00
simonb 97c54a1bab Use flags to set which parts of a passwd entry are to be changed.
Before removing the home directory of a user check that
  + the user does not have uid 0
  + the user is the owner of the directory.
and remove the files using the effective user-id of the user.  Show
a warning if the directory is not removed.

Use asprintf and fgetln for some string work to remove arbitary string
length limitations.

Fixes for PRs bin/11100 and bin/11103.
2000-10-17 04:53:27 +00:00
simonb 20fa427df4 Remove unneeded skel files.
Part of fix for PR bin/10985.
2000-10-16 13:46:48 +00:00
bjh21 73cc97669f Correct usage message: -p and -d can't usefully be used together. 2000-10-15 13:34:20 +00:00
bjh21 4be95e0e9d Use .Ql where appropriate.
-p and -d are, for practical purposes, mutually exclusive.
2000-10-15 13:32:13 +00:00
bjh21 95066d7f25 Put usage message in KNF order. 2000-10-15 12:46:31 +00:00
bjh21 b0c5636424 Canonicalize SYNOPSIS.
Widen left column of option list.
Add FILES section, so the possible values of <dev> are clearer.
2000-10-15 12:44:11 +00:00
bjh21 2530603bd5 Grammatical and formatting cleanups. 2000-10-15 12:37:16 +00:00
is 0e32b4bfb3 LP64 format string cleanup. Problem reported by garbled. 2000-10-15 12:27:25 +00:00
bjh21 ee64a7181e Minor grammatical touch-ups. 2000-10-15 12:25:17 +00:00
itojun d8212a986b sync with latest kame version 2000-10-15 11:45:16 +00:00
bjh21 4e3f859aad Render what text there is into something closer to English.
Credit the WIDE project, since the licence requests that.
2000-10-14 21:10:38 +00:00
taca 5f70e573c1 - replace DBDIR, ETCDIR and RUNDIR with /var/db, /etc, /var/run.
Original dhcp package, those strings are replaced with real pathname
  when creating catman files.  Since we install man files, those strings
  should be replaced with real pathname.
2000-10-14 05:14:01 +00:00
augustss eba963ea82 Fix more format string fallout. 2000-10-12 06:33:23 +00:00
augustss 43851beb31 Make it compile again after format string changes. 2000-10-12 06:11:40 +00:00
augustss 8ca6dec6ba Make it compile again after format string changes (this change was obviously
never tested).
2000-10-12 06:07:04 +00:00
augustss 9bd605c103 Make it compile after format string changes. 2000-10-12 06:03:32 +00:00
is d8302e2d73 More format string cleanups by sommerfeld. 2000-10-11 20:23:46 +00:00
itojun 0eafc475c2 /etc/mail/aliases, not /etc/aliases. PR 10167. 2000-10-11 16:51:55 +00:00
hubertf bf24eb4e3f Check if $PKG_PATH is set AND contains something useful. Stops
pkg_info from spewing.
2000-10-11 11:09:20 +00:00
hubertf 5f69d95c26 Check right variable to see if it's a URL (pkg -> cp) 2000-10-11 11:08:04 +00:00
hubertf b31af88872 fix indentation 2000-10-11 11:01:41 +00:00
ad 2f4f733952 rpcinfo is in section 8. 2000-10-10 14:34:13 +00:00
ad 8d6bd26624 Let `-' mean stdin. 2000-10-10 14:33:23 +00:00
enami e92c3f2867 - The type of return value of setmode is a void * and getmode takes it,
rather than mode_t *.
- Free the storage allocated by setmode unless it is obvious that program
  exits immediately.
2000-10-10 14:30:40 +00:00
itojun ecb9f85737 cast size_t to u_long on printing. sync with kame 2000-10-10 13:03:27 +00:00
itojun 0d592a8998 nuke link-locals correctly on -c. sync with kame 2000-10-10 10:14:36 +00:00
hubertf 589e705b57 Remove unneeded header <db.h>. 2000-10-09 19:11:58 +00:00
hubertf 6cc0c78181 Remove unneeded header <sys/syslimits.h> 2000-10-09 19:06:08 +00:00
hubertf f5b925151e Allow SRCS, LDADD to be set on the command line, and still add the files. 2000-10-09 17:03:20 +00:00
hubertf 32166d4f75 Only pull in <vis.h> when debugging expect(), i.e. EXPECT_DEBUG is set. 2000-10-09 14:35:27 +00:00
bjh21 23dc98ae44 Don't try to use yydebug when we're building on a foreign system. Not all
yaccs provide it (notably GNU Bison 1.28).
Fixes the final part of PR#9112 (building under GNU/Linux).
2000-10-08 11:33:40 +00:00
itojun ffa892c2d7 use poll(2). 2000-10-08 06:40:42 +00:00
itojun ff0a9e9ed1 remove bogus text in BUGS. 2000-10-07 23:31:18 +00:00
itojun 6626345485 avoid fd_set overflow. see openbsd select(2).
XXX should we use poll(2)?
2000-10-07 06:53:41 +00:00
itojun d074de9004 avoid fd_set overflow 2000-10-07 06:42:40 +00:00
itojun 829f1b8451 avoid fd_set size overflow. from deraadt@openbsd, sync with kame. 2000-10-07 06:41:37 +00:00
itojun 74b478c63c printf-format audit. from sommrfeld@netbsd.org. sync with kame. 2000-10-06 00:13:01 +00:00
wennmach 36f6fb7e06 mtree uses strsvis, not strvis. 2000-10-05 20:16:02 +00:00
ad 5b09090e8e insure -> ensure 2000-10-05 12:35:33 +00:00
hubertf 037fd8a74e Make even more silent, only spit out stuff if -v is given.
Found during a post-install of a fresh machine:
1. setenv PKG_PATH ftp://smaug.fh-regensburg.de/pub/NetBSD/arch/i386ELF/All
2. pkg_add tcsh ssh XF86Config
3. Run XF86Config
4. pkg_add kde
5. Be done.

We should do this from /etc/rc.local on first boot... :-)
2000-10-04 16:01:50 +00:00
jdolecek a93350bb37 document output format, so that users would know exact meaning
of printed statistics
2000-10-04 11:40:51 +00:00
itojun 70875bf54c add new cipher DOI # including AES.
add CR payload decoder.  fix ID payload decode.
have __attribute__((__packed__)) for align picky arch
(tcpdump.org code has better fix with lots of memcpy, however,
tcpdump.org version needs more verfication).

basically, sync with kame tree.
2000-10-04 03:53:24 +00:00
bjh21 adf3f4b907 Fix SYNOPSES:
Options without arguments go first in a bunch (see /usr/share/misc/style)
"add", "del", "info", "mod" arguments to user(8) and group(8) are command
modifiers, not normal text.
-D is not optional when setting the defaults for useradd(8)

Also add a missing .Ar to groupinfo.8
2000-10-03 19:32:23 +00:00
bjh21 ef44b18354 Split the SYNOPSIS into three cases, since not all options can be used
together.  The three cases are:

Adding a virtual terminal (can take -t/-e to configure)
Deleting a virtual terminal (can take -F to force)
Adding or removing a keyboard or multiplexor (can take neither of the above,
  and the index is optional)
2000-10-03 19:08:50 +00:00
bjh21 74521fc775 Use \(mu for a multiplication sign.
Use .Ql for literals in running text.
Use .Ar when referring to arguments.
2000-10-03 14:21:47 +00:00
bjh21 ea46e54f3e Use \(mu when we need a multiplication sign.
Use .Bx.
Use .Ql for literals in running text.
2000-10-03 14:20:52 +00:00
itojun 78907e0169 don't give result of function directly into syslog, use "%s". 2000-10-03 13:54:31 +00:00
scw 5c0e061414 Free the bind-address list entries, as well as the list itself. 2000-10-03 13:28:27 +00:00
bjh21 08964241f9 The usual formatting fixups. 2000-10-03 12:47:13 +00:00
bjh21 7faddc8d05 Only one fix here -- use .Ar when referring to arguments in running text. 2000-10-03 12:38:05 +00:00
bjh21 867a62d338 Apply .Fl, .Dq, .Ql and .Ar where necessary to fix formatting. 2000-10-03 12:34:05 +00:00
bjh21 41ed24d174 Fix the blank line in my last commit.
.Fl-ify mentions of "-D"
Use .Dq rather than ""
2000-10-03 12:18:09 +00:00
scw 97a603e5b0 Add a "-b" option to specify one or more local addresses to bind
to instead of the default INADDR_ANY.
2000-10-03 11:45:30 +00:00
hubertf 5e5f388806 * Make it a tiny bit clearer that this also works for IDE disks (by
listing 'wd0' as example device besides 'hk0' and whatnot)
 * We don't have format(8), remove from the SEE ALSO section.
2000-10-02 21:14:05 +00:00