Commit Graph

4018 Commits

Author SHA1 Message Date
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
cgd
1e69382368 clean up dev_t-related portability defines (and actually #define dev_t now).
Make major() et al match current NetBSD implementation.  In reality,
the code here in config which plays with these bits should be cleaned up
to treat major and minor separately.  (They only reason they're being mashed
together is storage convenience.)
2000-10-02 19:59:42 +00:00
cgd
da723c733f include copyright notice in binary even if bootstrapping. 2000-10-02 19:57:23 +00:00
cgd
506c287193 bump ALIGNBYTES up to 7 -- that way this'll have more of a hope
of working on non-NetBSD systems with 64-bit pointers.  (affects only
the MAKE_BOOTSTRAP case, and then only if BSD not defied.)
2000-10-02 19:51:07 +00:00
cgd
463d864ef0 nuke __P, and convert all functions to use ANSI-style declarations.
Also, do a few trivial KNF cleanups (e.g. newline at start of fn if no
locals).  Verified to have no effect via diff on new and old compiled
binaries.
2000-10-02 19:48:34 +00:00
cgd
a755a0d943 remove vestiges of checks for __STDC__ 2000-10-02 18:59:03 +00:00
bjh21
b56ee45833 General prettification.
There's a glitch in the display describing the "group" option in
usermgmt.conf.  I can't get rid of the blank line above it without it
losing the line break after the colon as well.  Anyone?
2000-10-02 18:28:28 +00:00
bjh21
8c07344989 Put sections in canonical order.
"stdin" is not a filename (use "standard input", which is at least English).
Typo fix (ro -> to).
2000-10-02 17:04:12 +00:00
bjh21
342d4af757 Put sections in the canonical order.
Correct wskbd(4) reference.
2000-10-02 16:45:20 +00:00
bjh21
7447cfe382 Put sections in the canonical order (from mdoc.samples(7)).
Add a "HISTORY" section.
2000-10-02 16:21:27 +00:00
bjh21
87589cb557 Replace "foo is mutually exclusive of bar" with "foo and bar are mutually
exclusive".
2000-10-02 15:11:43 +00:00
hubertf
0a2663ad0b Not every FTP server says nicely "Goodbye".
If they used some other string, pkg_add would hang forever.
The result of testing things only against one FTP server...
2000-10-01 20:34:30 +00:00
hubertf
197ee08b13 Don't replace the pkg version with -[0-9] on pkg alternates ("{foo-x,bar-y}")
as this will remove things like trailing '}' etc. and doesn't work in general.

As mentioned in the already-existing comment, doing TRT here would mean to
partly expand the pattern, then replace the versions on alternatives.
Unless our pkg pattern parser gets these hooks, cowardly step back.
2000-10-01 12:23:21 +00:00
simonb
956cbe59dd Don't refer to the skel-directory files here. 2000-10-01 09:18:59 +00:00
simonb
7ebee5683d Save the "preserve" value in the defaults file.
Use _PATH_CSHELL from <paths.h> instead of the string "/bin/csh".
Don't cast NULL to the pointer type being checked.
2000-10-01 08:56:28 +00:00
simonb
9014a6cdcd Fix typo. 2000-10-01 08:54:07 +00:00
bjh21
05b7923a90 Formatting cleanups around the description of geomspec. 2000-09-30 17:58:19 +00:00
sommerfeld
802499fd1c Avoid using savestr() on something which will later be passed to
free().  Raised as a potential security issue on bugtraq.  No actual
exploits known.
2000-09-30 12:44:37 +00:00
agc
9da93f35c8 Add functionality for adding usernames to secondary groups via the
"usermod -G group user" command.

Fixes PR/11071.
2000-09-29 10:37:26 +00:00
mellon
a894c0a5ef Goto label was in slightly wrong place. 2000-09-29 00:30:56 +00:00
erh
9a18c8bb35 Use ROUNDUP to pass addresses to the kernel aligned on a long boundary. Use the sa_len field of each address instead of sizeof(). Makes arp work on 64bit architectures. 2000-09-28 01:11:31 +00:00
itojun
c8b98b814c syslog() string format hole.
http://www.securityfocus.com/templates/archive.pike?start=2000-09-24&fromthread=0&mid=85023&list=1&end=2000-09-30&threads=0&
2000-09-26 17:44:38 +00:00
agc
4361ae7cb0 Correct a pasto in moduser(), the effect of which was to replace the
contents of the GECOS comment field with the default shell name, when
a user's information was modified.
Fixes PR 11072.
2000-09-26 11:35:48 +00:00
bjh21
ff579c68fd Style nit -- hard-coded path names belong in pathnames.h. 2000-09-24 09:45:55 +00:00
christos
b181f2aa02 - resolve conflicts
- adjust 2.4.0 new tty subsystem back to bsd.
- start on multilink stubs
- clean up warnings

Status:
- paulus knows about the fixes, but he has not responded yet as to if
  I should commit them or not].
- I've tested ipv4 connectivity and itojun tested ipv6 [many thanks!]
- Missing from this are pluggin examples and pppdump code because they
  are contain gpl code.
- This version of pppd is again gpl free now!
2000-09-23 22:39:29 +00:00
christos
5f5270c935 import of a cropped down pppd-2.4.0 circa sept 10 directly from the cvs
repository.
2000-09-23 22:14:39 +00:00
agc
61daa070a6 If we're about to add a user whose specified home directory does
not exist, and the "-m" argument has not been specified, then output
a warning.
2000-09-20 19:28:40 +00:00
christos
2565bd1854 oops, use MAKEDBM_S 2000-09-19 18:24:54 +00:00
christos
06e8cfa1f8 add a non-enabled rule to build solaris and linux shadow files. 2000-09-19 18:23:43 +00:00
ad
b8bb84a3b0 Clean one paragraph. 2000-09-19 16:28:52 +00:00
sommerfeld
5ac29b83b7 Don't prematurely terminate log message on a 0x80 character 2000-09-18 13:04:53 +00:00
jwise
f9c3dbedef Silly as it may be, update the #! line in this script to match the pkgsrc
wish install.

After the freeze, I'll pkgsrc this script -- it's kind of cute.
2000-09-14 18:00:44 +00:00
itojun
a5d0cbc5e5 sync with latest kame.
- improve logging.
- correct multicast address check for the relayed destination.
- repair EPRT translation.
- support 227 result without paren.
- change behavior on no-argument to more sensible side
  (before: relay telnet, now: error)
  WARNING: you may need to change your startup script.
2000-09-14 00:36:10 +00:00
itojun
ed870024f2 sync document with latest kame. now uses 3ffe:501:ffff::/48 in example. 2000-09-14 00:30:23 +00:00
thorpej
a12b66cf79 Don't abort if pushing to one server in the ypservers map fails.
There might be serveral more waiting to be pushed to.

This is only 1/2 of the fix.  ypxfer(8) also needs a change to
avoid a false error, but this allows pushes to continue to work,
at least.

Problem noted by aflury@zembu.com and agordon@zembu.com.
2000-09-13 21:40:15 +00:00
tron
20084585ac Use setlocale(3) to activate support for international characters.
This should fix PR bin/11007 by Bill Sommerfeld.
2000-09-13 21:20:21 +00:00
sommerfeld
b6f7dd7187 prevent one byte overrun in printline() 2000-09-13 15:46:32 +00:00
enami
f1fec63273 When @hourly is specified, set not just 23 but bit 0 through 22 also in
the bitstring e->hour.  Fixes PR#10961.
2000-09-13 04:07:34 +00:00
erh
5303e70da5 Make targets which are generated with rpcgen depend on the rpcgen binary. 2000-09-10 23:21:49 +00:00