Commit Graph

5726 Commits

Author SHA1 Message Date
abs acfcf99e58 Do not prepend '.' to path when looking for dependencies for a package
specified without any path components. (Pointed out by Takashi Yamamoto)
Rename path_remove_first() to path_prepend_clear().
2002-08-29 21:46:33 +00:00
itojun 34eb7e98f4 no need for -I/usr/include/openssl (in fact, it is discouraged) 2002-08-29 14:35:45 +00:00
wiz 9236a5071b Some grammar and mdoc improvements. 2002-08-29 11:07:11 +00:00
abs b3c9314a54 crank PKGTOOLS_VERSION to 20020827 for last change to lib/path.[ch] 2002-08-27 17:35:05 +00:00
abs 374ff93c9c Introduce path_prepend_from_pkgname() and path_remove_first() and
use in pkg_add to ensure the location of the package being added is
checked first for any additional packages.
2002-08-27 17:27:27 +00:00
lukem ed401558f2 Implement MKDYNAMICROOT, which currently defaults to "no", but will
be changed in the future to "yes".

If MKDYNAMICROOT == "no", there is no change from existing behaviour
of a static /bin and /sbin (and a few programs in elsewhere).

If MKDYNAMICROOT == "yes", the following changes occur:
    in <bsd.own.mk>:
	SHLIBDIR?=     /lib
	SHLINKDIR?=	/lib
    in various Makefiles, the following entry is DISABLED.
	LDSTATIC?=-static
This results in all programs (except those "standalone" programs built
in sys/arch/*/stand) are linked dynamically, the shared linker is moved
from /usr/libexec to /lib (with a compat symlink), and the shared
libraries used by /bin and /sbin programs are moved from /usr/lib to
/lib (with compat symlinks).
2002-08-27 14:46:11 +00:00
takemura b8ce6e8201 Added touch panel calibration utility. 2002-08-27 14:12:09 +00:00
agc 18e50dcd89 Use syslog(3) to log new users and groups, deletions of users and groups,
and modification of user and group information.

Syslog priority is LOG_INFO, facility is LOG_USER (there is no need to
do this via LOG_AUTH, since the password and group files are world
readable).

Suggested by Hubert Feyrer, after a similar facility in Linux.
2002-08-27 12:38:02 +00:00
agc 051f76f577 Generalise the function which checks if a user is local to work for groups
as well.

Use the new function when modifying a group's information.
2002-08-27 11:25:29 +00:00
itojun dcbc05cef8 warn if multiple addresses are returned from DNS, like traceroute(8) does.
sync w/kame
2002-08-27 00:34:52 +00:00
ad 37fdff48de Re-word a sentence. 2002-08-26 17:05:43 +00:00
ad 7a2589c16e - Must now get some info from the kernel, not the board.
- Don't try to do things that the firmware can't handle.
2002-08-26 17:04:17 +00:00
itojun ea854da625 string manipulation fixes. from openbsd 2002-08-22 07:18:42 +00:00
itojun 9e8e6611e8 suppress output on dump request if -q is specified. sync w/kame 2002-08-21 16:26:12 +00:00
itojun 00975d3872 die if fd_set overrun. explicitly turn off use of IPv4 mapped addr on AF_INET6
socket.
2002-08-20 23:02:44 +00:00
christos 5cefaa7349 PR/17402: Julio Merino: better fine tuning for both x and y. 2002-08-20 16:55:28 +00:00
hubertf dfa4cb8d4d Fix a few comments, and add some others to outline what's missing
in the pkg upgrade case (two TODOs :)
2002-08-16 00:47:39 +00:00
wiz f4813ef403 Drop trailing whitespace. 2002-08-15 03:26:38 +00:00
hubertf 3ddcffd0a9 document -u 2002-08-15 02:34:53 +00:00
pooka a1c35451a3 move curses initialization higher in main to prevent the curses
error function from being called before curses is initialized
2002-08-13 18:21:25 +00:00
pooka d19d334a86 don't report curses initialization failure using curses 2002-08-13 18:16:31 +00:00
itojun e042104e12 document that access control is provided by libwrap. 2002-08-12 18:47:07 +00:00
wiz a05630c34e Minor mdoc nit. 2002-08-12 18:08:13 +00:00
itojun 166e26e413 add libwrap support for lpd (you need to pass all tests to print,
so you will want "+" in hosts.lpd then restrict by hosts.allow/deny).
setsockopt(SO_REUSEPORT) while i'm here.
2002-08-12 18:03:41 +00:00
wiz 330119fdb5 Correct usage. bin/17916 by Brian Ginsbach. 2002-08-12 17:41:32 +00:00
itojun 072e5e6887 it is no use to do SO_DONTROUTE on receive socket. stevesk@openbsd 2002-08-12 02:51:07 +00:00
tron 92cd63769f Make this build after "wi_ieee.h" has been changed. 2002-08-11 12:16:27 +00:00
grant cc65da74ac specify the reason when aborting with "Malformed from address",
suggested by Matt Green.
2002-08-11 07:04:00 +00:00
soren 7ba72383ee Don't omit third argument to open(2).
PR bin/17885 from mjl.
2002-08-09 11:06:43 +00:00
itojun d36c8b47de no need for struct timezone. From: Kevin Steves <kevin@atomicgears.com> 2002-08-09 02:57:09 +00:00
itojun 98e97a1b2b die if fd_set overruns. 2002-08-09 02:43:58 +00:00
itojun 1917442aa9 die if fd_set overruns 2002-08-09 02:40:57 +00:00
itojun 17110be88b die if fd_set overrun. (they're not setuid binary so it is not that critical) 2002-08-09 02:17:26 +00:00
itojun 258ffca8eb one more indentation fix 2002-08-09 02:09:25 +00:00
itojun 93a39a493f more consistent indentation 2002-08-09 02:09:01 +00:00
itojun 31f93ffa75 revoke root priv earlier. check fd_set overrun (and die if overrun).
avoid using runtime-generated printf format string.  from xs@kittenz.org
2002-08-09 02:04:03 +00:00
soren 236006d5dc Remove extraneous \n's in {err,warn}{,x} that used to be printfs. 2002-08-08 13:24:12 +00:00
itojun b77947eeb5 fix an exploitable fd_set overflow in mrinfo(8). drop root priv earlier.
do not use generated printf format string.  from xs@kittenz.org
2002-08-08 00:21:36 +00:00
yamt 13ebe87a2f add some comments. 2002-08-08 00:17:39 +00:00
wiz aea5088350 Set the default password (if not specified) to a single star instead
of PasswordLength stars.
2002-08-07 14:24:52 +00:00
blymn d8747fc408 Incorrect form commands were used for the left and right char handlers. 2002-08-07 11:03:45 +00:00
agc b35288ab0c Add a function is_local_user(), and use it in moduser(), to check that
the user is not found through NIS.

Completes fix of PR 17849, from Grant Beattie (grant@netbsd.org).

Also, don't cast return type of pw_abort(3) to void, as it already is void.
2002-08-06 11:56:26 +00:00
agc 569d79bd84 Remove the /etc/ptmp file via pw_abort(3) if the pw_mkdb(3) call fails.
Addresses part of PR 17849 from Grant Beattie, grant@netbsd.org.
2002-08-06 09:03:55 +00:00
hubertf ac31af18a9 20020804:
* pkg_admin pmatch
 * pkg_add increases resource limits

No need to bump PKGTOOLS_REQD as these are not used anywhere right now!
2002-08-04 21:49:23 +00:00
hubertf ed4b7caed9 Try increasing number of max. open files as high as possible.
Prevents annoying errors when installing biggies like KDE.
2002-08-04 21:47:24 +00:00
hubertf cebf43ab6e Add 'pmatch' keyword: pkg_admin pmatch pattern pkg
Will return true if 'pkg' matches 'pattern', false else.
Provides a command line interface to the pmatch() C function
to be used from shell scripts etc.
2002-08-04 20:50:55 +00:00
hubertf c2c6f0bc61 Don't warn about PKG_PATH being set when -e is given 2002-08-04 19:43:08 +00:00
itojun 4fd217fda9 o Instead of passing "*system*" as the fname to process_crontab()
for the system crontab file, pass a NULL pointer instead.  This
  prevents someone from creating a "*system*" file in the tabs directory
  that acts as an alternate root crontab.

from openbsd
2002-08-03 02:03:00 +00:00
seb 46495173b2 Fix FTP_CMD for Solaris: something went wrong when it was added.
Approved by wiz.
2002-08-02 17:04:55 +00:00
christos c9bffd0130 fix argument order. 2002-08-02 14:06:07 +00:00
simonb 8cd68a2ff9 Setting BINMODE=555 is redundant, as is setting BIN{OWN,GRP} of we're
using the default BINMODE.
2002-08-02 03:58:09 +00:00
christos 4be5fa5155 no need to include utmp everywhere.
add utmpx support
2002-08-02 02:52:07 +00:00
christos bdb7464e61 oops reversed argument order. 2002-08-02 02:49:27 +00:00
christos 1bf7077704 welcome to the 20th century; use logwtmp{,x}; don't write to /var/adm/wtmp! 2002-08-02 02:47:58 +00:00
christos b166b5b47b use utmpx. 2002-08-02 02:38:15 +00:00
christos d116a0bbd3 add utmpx support; 2002-08-02 02:23:49 +00:00
christos 3fd7285df0 Don't include utmp.h 2002-08-02 02:13:46 +00:00
itojun 2f26267778 ifa->ifa_addr is already pointer, no need for "&". from love 2002-08-01 23:47:46 +00:00
itojun 43cad3fc3f use getifaddrs, not SIOCGIFCONF. should fix PR12578 2002-08-01 14:04:50 +00:00
itojun f34e694103 correct in_cksum2 for odd length case 2002-08-01 09:03:50 +00:00
itojun 80964024a7 kill register variable decls, they are meaningless these days 2002-08-01 09:02:18 +00:00
itojun 518af973ec u_short cleansing (use u_int16_t where appropriate).
XXX in_cksum2 does not seem correct in odd length case
2002-08-01 08:41:32 +00:00
itojun a297f25294 avoid issues with typecast optimization (taking advantage of pointer aliasing),
which results in incorrect igmp checksum.
confirmed by taca@netbsd
2002-08-01 08:33:14 +00:00
itojun 896f6ff227 u_short cleansing (should be u_int16_t) 2002-08-01 03:40:34 +00:00
itojun eb78c879ca we shouldn't be shipping it, pim6[sd]d is not part of our base tree 2002-08-01 03:38:01 +00:00
wiz a1b3869d7e Unifdef __STDC__, ansify. 2002-08-01 00:17:31 +00:00
christos 8fece071ac don't try to chmod if fchmod fails when restoring the original tty modes.
It could cause a symlink race. Just report the fchmod failure. Reported
by itojun, found in FreeBSD.
2002-07-31 14:59:10 +00:00
bouyer 27b46820fc As discussed on tech-userlevel on Jun, 10 2002, make changes to not use
getpwnam() to get the user's passwd entry but read it from the passwd file
yppasswdd will later update. This allows a NetBSD machine to be master NIS
server without requiring the NIS accounts to exist (via /etc/master.passwd,
nis or other ways) on the local machine.
2002-07-31 14:41:56 +00:00
mrg ecae279f88 fix usage() message for "-s" argument. ie, do *not* suggest "/usr/src"
as this causes "make distribution" to be run in /usr/src.
2002-07-31 06:43:17 +00:00
jschauma a1e7e17b3e Fix typo pointed out by haes at shrubbery dot net in PR bin/17396
"filter to be use" -> "filter to be used"
2002-07-31 01:49:48 +00:00
jschauma a82bd2c37e Synch with reality (PKG_TMDIR defaults to /var/tmp (first)).
Pointed out by franklin at elfie dot org in PR pkg/17760,
discussed on packages@, approved by hubertf.
2002-07-31 01:39:40 +00:00
wiz fbbf252d3c g711conv has been obsoleted in March (use pkgsrc/audio/sox).
Remove reference to it from SEE ALSO.
2002-07-29 01:08:29 +00:00
wiz bdd6e709c2 i4btel -> isdntel. 2002-07-29 01:05:37 +00:00
wiz 1e24ad3422 Update some man page references (i4b -> isdn rename). 2002-07-29 01:05:21 +00:00
wiz 3e4ae32f21 Uppercase ISDN and some unrelated fixes to words ispell didn't like. 2002-07-29 00:54:44 +00:00
jdolecek fceac2db48 After showing help, touchwin/wrefresh the stdscr, do not try to do
that for form subwindow, which may be NULL (or is always, even?).

This fixes SIGSEGV when one goes to
Network related configuration -> Modify the hosts file -> Delete host entries
and presses F1 (Help).
2002-07-26 08:43:26 +00:00
jdolecek d5d1e7aa6c fgetln() does NOT return NUL-terminated string
This fixes bin/13624 by Jun-ichiro itojun Hagino
2002-07-26 07:59:33 +00:00
wiz 5db23d2c5d enouth -> enough. 2002-07-26 01:00:39 +00:00
jdolecek 973b4b497c form_appenditem(): make sure fte->list is initialized
process_{pre,}form(): g/c unnecessary malloc, plug memory leak
gen_list(): only check ftp->list after realloc()
handle_{pre,}form(): allocate F[] via calloc(3), so that the memory is
     properly zeroed
2002-07-25 12:42:39 +00:00
jdolecek d675751f34 g/c some pointless malloc()s 2002-07-25 12:39:26 +00:00
jdolecek 5ff2a932b1 launch_subwin(): make sure string 'command' is initialized; malloc may not return
zeroed memory. This should fix the SIGSEGV part of bin/17718
by Grant Beattie.
2002-07-25 12:34:09 +00:00
jdolecek 70accc48c9 add XXX comment for piece of very strange code; I don't currently
want to investigate more
2002-07-25 12:20:56 +00:00
jdolecek ee3d448cbd Array retrurned by form_fields() is NOT NULL-terminated - use field_count()
to get amount of fields on the form instead.
This fixes a SIGSEGV problem I encountered, and possibly also the crash part
of bin/17718 by Grant Beattie.
2002-07-25 09:38:31 +00:00
yamt 0eb57ea5a6 bump version to 20020723.
(PKG_PATH changes)
2002-07-23 09:23:35 +00:00
grant eda9e509bb sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:40:16 +00:00
grant 6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
yamt b9911a030d #if 0 out unused functions. 2002-07-20 05:40:55 +00:00
yamt c819f95798 show_file: don't append '\n' if fopen failed. 2002-07-20 04:59:47 +00:00
yamt c4ca16e864 show_file: add an extra '\n' unless file ended with '\n'. 2002-07-19 19:18:26 +00:00
yamt 5eb02a32ce - remove handling of PKG_ADD_BASE.
- don't search current directory if PKG_PATH is set.
- don't prefer local directories.
- constify and cleanup.
discussed on tech-pkg.
2002-07-19 19:04:33 +00:00
wiz 9a97e49a31 Fix a typo. 2002-07-19 10:12:49 +00:00
mrg 65b6526e06 add a "-s <mopdir>" argument to mopd so that it doesn't require one place
files in /tftpboot/mop.
2002-07-19 10:05:34 +00:00
mrg 04ccd30c07 don't build eehandlers.c on MACHINE_ARCH!=sparc64 2002-07-19 02:26:40 +00:00
itojun d650d1adac with -i, flag on command line and flag displayed are different, and it does
nothing but confuse users.  sync them.

for -nud and such, you need "-- -nud" due to posix arg parsing.

sync w/kame
2002-07-17 13:08:27 +00:00
wiz fd8d583021 Unifdef __STDC__. Remove __P() and register. ANSIfy. 2002-07-14 16:32:48 +00:00
wiz 51c0807f60 Unifdef __STDC__. Remove __P(). Remove register. ANSIfy. 2002-07-14 16:30:41 +00:00
wiz 279bdef494 Unifdef __STDC__. ANSIfy. Remove __P(). 2002-07-14 15:34:58 +00:00
wiz 895dc72a69 Unifdef __STDC__. Remove __P(). ANSIfy. 2002-07-14 15:27:58 +00:00
wiz fed48e80ae Unifdef __STDC__. 2002-07-14 09:59:23 +00:00
wiz e58b7d4682 ANSIfy. Remove ifndef __STDC__. Remove __P(). 2002-07-14 01:01:10 +00:00
wiz 84dd8f31fd ANSIfy. Remove ifndef __STDC__. Remove __P(). Remove register. 2002-07-14 00:58:30 +00:00
wiz c807c0dfe6 Finish ANSIfication. Remove ifndef __STDC__. 2002-07-14 00:37:46 +00:00
wiz aae9c2a083 De-register. 2002-07-14 00:30:02 +00:00
wiz 131109e49e ANSIfy. Remove ifndef __STDC__. 2002-07-13 23:56:39 +00:00
toshii 5e1f92b4ef If "-f" is given, don't set errc on dependency add failure.
This change makes "pkg_add -f" work as it used to be.
2002-07-13 16:38:00 +00:00
itojun d97f14e190 use snprintf. inspired by openbsd change 2002-07-13 11:35:35 +00:00
scw 4036c57dcb Work-around an internal compiler error on the SuperH sh5 toolchain. 2002-07-11 20:07:07 +00:00
scw 046bb1fbbc Work-around an internal compiler error on the SuperH sh5 toolchain. 2002-07-11 19:47:17 +00:00
scw 05774dcd91 Define NLIST_ELF32 and Define NLIST_ELF64 for SH5. 2002-07-11 19:15:54 +00:00
wiz 4f156aff23 Fix a lint warning by removing some #ifdef lint (!?!). 2002-07-10 23:55:06 +00:00
wiz 790f1e25bd Remove unneeded header file. 2002-07-10 23:49:18 +00:00
wiz c3825c9257 Remove some unneeded typedefs and defines. 2002-07-10 23:47:01 +00:00
wiz 4b20971f01 Spell acquire with a 'c'. 2002-07-10 23:16:32 +00:00
wiz babf9fcdb0 Make compile with -DHAVENIS. Also make compile with WARNS=2, and
set WARNS=2 in Makefile.
2002-07-10 22:44:22 +00:00
wiz 0b6819637f Usge -> Usage in comment. 2002-07-10 21:31:30 +00:00
wiz 09e4390a6e De-lint a bit. 2002-07-10 21:28:13 +00:00
itojun 9e876c9803 test malloc failure. From: Chad Loder <cloder@acm.org>. sync w/kame 2002-07-10 21:13:35 +00:00
itojun 5e4b1fc3b1 byebye __FUNCTIION__. sync w/kame 2002-07-10 21:11:43 +00:00
wiz a330b47ad5 Cleanup, part 2:
Remove 'register'. ANSIfy. indent(1). Static -> static.
Change some ``#include <header.h>'' to ``#include "header.h"'' for
local headers.
Fix function declaration mistakes uncovered by ANSIfication.
2002-07-10 20:19:38 +00:00
wiz 6623130407 Remove unused ci.c. 2002-07-10 18:55:34 +00:00
wiz 77085dee52 Cleanup, part 1:
Remove sysent.h, unneeded.
Remove __P().
unifdef __STDC__
Remove some #if 0 parts.
Start ANSIfication.
2002-07-10 18:53:56 +00:00
fredb d9aaf825ea Unset connect-time timer on disconnect, as discussed briefly on
tech-userlevel. Without this, using "demand" and "max-connect NNN"
together subjects the user to rather arbitrary disconnects.
2002-07-10 15:00:35 +00:00
jdolecek 78703f950e Put grfconfig(8) manpage to amiga subdir, since it's amiga-only tool.
Adresses part of bin/8733 by Danny Thomas.
2002-07-09 22:18:37 +00:00
wiz 7c42d2fdaf Clean up last (no spaces before parentheses). 2002-07-09 14:13:18 +00:00
tron 4a3185f506 Get rid of __P() here. The rest of the sources doesn't use it, too. 2002-07-09 10:34:44 +00:00
tron cb35c09756 Fix build problem probably caused by some toolchain change. 2002-07-09 10:34:16 +00:00
yamt a8463800e2 don't pass null pointers to printf for "%s". 2002-07-09 04:35:30 +00:00
yamt 84954a6eb7 - use snprintf and strlcpy instead of strcpy, strcat and sprintf in some place.
- remove a unneeded strcpy.
2002-07-09 03:30:05 +00:00
hubertf 534ff5d5e9 This fixes various little problems in the lpd source.
lpd.c           bogus 'c' option in getopt option string

        printjob.c      spelling "prstatic inter" -> "printer"
                        finish ANSIfication

        recvjob.c       finish ANSIfication

Patch contributed by Brian Ginsbach <ginsbach@cray.com> in PR 17520
2002-07-09 01:12:35 +00:00
agc c24c69434f Remove user from supplementary groups when deleting a user and not
preserving information.

Remove BUGS section from userdel(8) accordingly.

Make this utility compile with WARNS=3 - add const-poisoning and
shadow variable name resolution.
2002-07-08 22:17:47 +00:00
wiz a234ffc74d Document -w. Patch from Brian Ginsbach in bin/17518. 2002-07-08 14:05:37 +00:00
wiz 4eed7fe383 Fix typo reported in bin/17516. 2002-07-08 11:32:44 +00:00
drochner 12950c5082 fix error handling if open() fails 2002-07-07 15:13:55 +00:00
bjh21 525b050279 Align default behaviour of chmod, chgrp, chown, and chflags with symlink(7),
IEEE 1003.1-2001 (where applicable) and other systems, by follwoing symlinks
on the command line and changing their targets' modes/ownership/flags, rather
than ignoring them.

This fixes PR standards/563 (at last).
2002-07-07 11:44:02 +00:00
wiz 0fb8fdab47 ANSIfy, remove __P(). 2002-07-06 22:08:30 +00:00
wiz 557fe0a8de ANSIfy and de-__P() a bit more. 2002-07-06 22:01:40 +00:00
wiz 8fb60bde2d Remove unused files (cf. timed{,c}/timed{,c}-extern.h). 2002-07-06 21:59:26 +00:00
wiz b73d58cd80 Remove __P(). 2002-07-06 21:52:05 +00:00
wiz 56b7e3b326 Remove some unnecessary cruft. 2002-07-06 21:51:49 +00:00
wiz f718edfc2a unifdef __STDC__ 2002-07-06 21:46:59 +00:00
wiz 7146bf3ca6 ANSIfy, remove __P(), unifdef __STDC__. 2002-07-06 21:44:40 +00:00
wiz 5c90fa6755 ANSIfy, remove __P(). 2002-07-06 21:30:26 +00:00
itojun 93b1b1c2c9 avoid trigraph. From: Matt Fredette <fredette@theory.lcs.mit.edu> 2002-07-06 18:21:43 +00:00
wiz 3a0b8f6e80 de-__P(), ANSIfy. 2002-07-06 01:00:15 +00:00
wiz 559abfe369 de__P(), ANSIfy. 2002-07-06 00:56:32 +00:00
wiz d532b687e7 de-__P(), ANSIfy. 2002-07-06 00:55:29 +00:00
wiz cfa755ae92 de__P, ANSIfy. 2002-07-06 00:53:54 +00:00
wiz 5250421372 de-__P(), ANSIfy. 2002-07-06 00:47:55 +00:00
wiz 8891dbdc2d ANSIfy, de-__P(), and remove unused SIG_PF define. 2002-07-06 00:46:12 +00:00
wiz 15badb287b ANSIfy (overlooked some...) 2002-07-06 00:42:27 +00:00
wiz 1de018550a Actually, SIG_PF isn't needed in this file at all -- remove it. 2002-07-06 00:31:07 +00:00
wiz af4c38b82e Use .Aq instead of \*[Lt]...\*[Gt] in two places. End sentence with a dot. 2002-07-06 00:21:14 +00:00
wiz ce6c985b9d De-__P(), ANSIfy the one function that wasn't, and unifdef __STDC__. 2002-07-06 00:18:48 +00:00
christos 5740d23c54 Fix selection code [and remove trailing spaces] from Julio Merino. 2002-07-04 20:50:29 +00:00
itojun 181c9736b9 correct udp-from-broadcast check. From: andre@ae-35.com 2002-07-04 12:35:19 +00:00
itojun aafb24a06b getstring() safer by passing buffer size. millert@openbsd 2002-07-04 06:43:19 +00:00
kleink 41b912792c postive -> positive 2002-07-03 22:28:28 +00:00
wiz 3560ae7f37 Sort options in getopt string. 2002-07-03 22:19:25 +00:00
hubertf 1b7f271a58 * Add missing 'break'
* cosmetic update in getoipt string

Patch supplied by Brian Ginsbach <ginsbach@cray.com> in PR 17473.
2002-07-03 22:12:46 +00:00
wiz 84d465bb02 Improve last. 2002-07-03 22:12:38 +00:00
wiz 53e326dd05 Fix error output for negative argument to '-w'.
Also update usage to include -w.
Patches from Brian Ginsbach in bin/17471.
2002-07-03 22:10:28 +00:00
hubertf e925e82dbe Document missing -w option.
Patch submitted by Brian Ginsbach <ginsbach@cray.com> in PR 17472.
2002-07-03 22:07:33 +00:00
christos cb57f0e9bb change the comparisons to account for the unsigness of the variables.
From Julio Merino.
2002-07-02 12:41:26 +00:00
itojun 2a1f4932a0 new CMU boilerplate, from openbsd 2002-07-01 22:19:30 +00:00
wiz 059d2bb6c4 Mdoc nit. 2002-06-30 12:49:29 +00:00
lukem a88aa33faf - be consistent with formatting, and use FSTYPE instead of <fs>
- remove sparc and sun[23] BUGS that aren't relevant in this version
2002-06-30 08:10:40 +00:00
grant 724345d941 update to reflect current state of reality for alpha, pmax, sparc,
sparc64, sun2, sun3 and vax.
clean up examples.
include bugs/caveats from the (now removed) arch installboot man pages.
2002-06-30 04:39:05 +00:00
sommerfeld f80c7eebd7 Since the KERN_CP_TIME sysctl reports total clock ticks across all
cpus and hz is measured in ticks per cpu, divide tick count by ncpu to
determine elapsed time since last sample.

Fixes I/O rate deflation observed on multiprocessors.
2002-06-30 00:10:33 +00:00
itojun 1fd7b003fa it is highly unlikely that protocol # for ip/icmp to change. from deraadt. 2002-06-29 12:12:57 +00:00
itojun 304d46f942 check port number range. sync w/kame, pointed out by deraadt 2002-06-29 07:49:25 +00:00
lukem 0944ed1dd1 tmp_version.c also needs to depend up ${BIND_DIST_DIR}/Version 2002-06-28 16:27:14 +00:00
wiz 2ae2723f67 Sort options in usage. 2002-06-27 22:58:54 +00:00
wiz c89a21963c Spelling fixes, sort options alphabetically, correct copyright date,
and some mdoc improvements.
2002-06-27 22:53:12 +00:00
christos 49cc9b7cd6 clarification on mouse use from Julio Merino 2002-06-27 16:10:03 +00:00
christos 19c9175000 correct for ttyEstat 2002-06-27 15:12:23 +00:00
christos ec14ca749d rename /dev/wsdisplay -> /dev/ttyEstat since it has the same major number
as the other ttyE devices.
2002-06-27 15:07:52 +00:00
yamt bf62cfa448 check return value of snprintf correctly. 2002-06-27 12:05:52 +00:00
christos 784751cd6b PR/17402: Julio Merino: Userland portion for moused (with some changes from me). 2002-06-26 23:13:04 +00:00
wiz 2e935ec638 Don't xref ourselves, use Nm. 2002-06-24 18:22:37 +00:00
wiz d4144f2137 Drop trailing whitespace and sort sections. 2002-06-24 18:20:54 +00:00
grant 551a65be7c add BUGS section (1 entry from bin/11244) 2002-06-24 17:28:07 +00:00
itojun 184465092f correct ftp relay functionality. 2002-06-24 06:03:13 +00:00
perry 46c82860b1 Fix a variable initializer where CLK_TCK was assumed to be a compile
time constant. Soon it won't be.
2002-06-23 17:47:45 +00:00
ross 6a36d10f0d Revise handling of pathnames and quoted strings. Previously, some
filenames had to be unquoted and also had to contain a / or .,
while others had to have no / and no . or be quoted, whereas
arbitrary machine symbols could always be optionally quoted,
which was kind of backwards.

Now, all filesnames use the same rules: quoted, or with a / or .
Arbitrary words can no longer be quoted unless the grammar specifically
allows it, which it now does for filenames, locator values, locator
defaults, compile-with, ident, makeoptions, and options.

Also, locator name symbols can be quoted, so mac68k's "no drq" locator
still works. ("no drq" doesn't appear in any machine description so I
presume it's just for the dmesg. )
2002-06-22 02:09:12 +00:00
ross 5ac0b7aefd Return new terminal QSTRING for quoted strings, instead of the
usual symbol name type WORD; quoted strings can now only be used
where they appear in the (revised) grammar. See gram.y 1.34.
2002-06-22 02:04:28 +00:00
atatat 851e916f1b Provide a means for vnconfig to indicate which devices are in use, and
by which files (hmm...why can't I unmount that file system over
there).  Currently this is just the device and inode number of the
file backing the vnd, but hopefully consing up full pathnames can be
done at some point.
2002-06-21 19:09:29 +00:00
agc 2d3a1701d3 Avoid hardcoding /usr/bin/ftp in the pkg_add binary.
Fixes provided by Stoned Elipot <seb@script.jussieu.fr> in PR 17323
2002-06-21 14:49:40 +00:00
itojun ce924b0f55 sync with 8.3.2. 99% of conflicts were due to $NetBSD$ tag. 2002-06-20 11:42:53 +00:00
itojun d56d2a76af new copyright notice for VJ. via openbsd.
update copyright notice.  mckusick says that Van signed the standard
  Berkeley copyright assignment form, therefore the new license should
  be on these files. I just copied in the notice that Kirk mailed me.
2002-06-18 22:32:16 +00:00
itojun 7dd411b55d userland access to apm emulation. 2002-06-18 05:24:44 +00:00
thorpej 8d88f50760 Fix some printf formats in debug code. 2002-06-18 02:57:53 +00:00
augustss 75ccf77ae3 Don't use -Dlint when compiling to get rid of unused copyright strings,
use -Wno-unused to get rid of the warning instead.
XXX This is not the right way either, but at least it compiles on ppc now.
2002-06-16 21:40:03 +00:00
matt 100b7b43f1 Eliminate unintended trigraph. 2002-06-15 01:57:08 +00:00
matt b8282a1148 Remove extra/redundant argument to syslog. 2002-06-15 01:28:39 +00:00
tron 6db3449490 Add new option "xlatecookie" to amd(8) to support NFS v3 mounts with cookie
translation. The changes were provided by Mark Davies in PR bin/17245.
2002-06-14 15:16:53 +00:00
wiz d1677084c1 Use getopt instead of manual command line grovelling, put usage
in a function and adapt it the man page, and some lint cleanups.
2002-06-13 15:27:09 +00:00
wiz ff7391b803 Note -f is vax only. 2002-06-13 15:25:58 +00:00
wiz 07daf36181 Use a defined value instead of a magic number; make a global local;
more ANSIfication.
2002-06-13 13:49:08 +00:00
wiz 663979c9bb #ifdef i386 -> #ifdef __i386__ (ok'd by fvdl)
Don't shadow variable.
WARNS=2
2002-06-13 13:32:47 +00:00
wiz e8288082fa de-__P, ANSIfy. 2002-06-13 11:01:08 +00:00
wiz 9e20e355d7 Fix Xref from i4bipr to irip. 2002-06-13 09:15:39 +00:00
wiz 59cf1ed286 Do not xref to ourselves, use Nm. 2002-06-12 21:48:09 +00:00
lukem 334bc46aa5 - getlist(): add "int create" arg, which creates list if it's not present
(using guts of now defunct addlist())
- use TAILQ_*() macros appropriately when manipulating tailqs
2002-06-11 04:39:52 +00:00
fredette dcff733bb9 Use NLIST_ELF32 for hppa. 2002-06-10 14:28:14 +00:00
yamt 80a776becb constify and make WARNS=2 clean. 2002-06-10 09:14:26 +00:00
grant 091e72dbd4 be more explicit about creation of /etc/usermgmt.conf 2002-06-10 08:33:05 +00:00
grant ef33e31e46 mention that -D creates defaults file if it doesn't already exist and if
we are running as root.
2002-06-10 07:53:48 +00:00
itojun 5b43820fcf WARNS=1 clean. patch submitted to dhcp-bugs@isc.org. 2002-06-10 00:30:33 +00:00
itojun 6ed8672880 no need for KAME_SCOPEID any longer 2002-06-09 19:59:55 +00:00
itojun f79eb4420d retire greconfig(8) - you can use ifconfig(8) for everything it can do. 2002-06-09 19:31:43 +00:00
yamt 56268cdf57 constify. 2002-06-09 14:14:49 +00:00
yamt 51111fe65d - make last arg of findmatchingname void*.
- move some duplicated functions into lib/.
2002-06-09 13:23:44 +00:00
yamt cc8d347c9a - free memory allocated by findbestmatchingname.
- use static buffer instead of "malloc and don't free"
  for dirname_of.
- fix indent.
2002-06-09 11:56:59 +00:00
yamt 830edd8ed3 rewrite strip_txz:
- don't match against filenames like "a.tgz.a"
- more buffer overrun checks.
2002-06-09 10:40:47 +00:00
martin e2f0c79cdc Avoid a NULL pointer access if passed bogus parameters.
Unify exit codes to EXIST_SUCCESS/EXIT_FAILURE.
2002-06-09 09:05:51 +00:00
yamt f2a19ed936 - fix buffer size checks
- define PKG_PATTEN_MAX and PKG_SUFFIX_MAX and
  use them instead of constants like 255.
- add asserts and buffer size checks.
2002-06-09 03:50:13 +00:00
yamt ae85a7c2df - constify.
- avoid unneeded strcpy.
- add more error checks. (avoid segv
2002-06-09 03:38:59 +00:00
yamt f214a6095e avoid a magic constant. 2002-06-09 03:32:45 +00:00
itojun db47036241 use strchr 2002-06-09 02:47:03 +00:00
itojun ba39243377 use strchr not index 2002-06-09 02:45:26 +00:00
itojun 0b52cc9109 avoid more hardcoded octals. openbsd 2002-06-08 23:43:24 +00:00
itojun b4daa6bb72 avoid hardcoded octals. openbsd 2002-06-08 23:40:12 +00:00
itojun 5da007343b avoid hardcoded octals 2002-06-08 23:37:47 +00:00
itojun 61ef51d198 comment out paragraph that does not fit to NetBSD 2002-06-08 21:19:08 +00:00
itojun b7330b38e8 do not use deprecated ioctls 2002-06-08 18:11:46 +00:00
yamt 10bf6fcc59 constify and make auto const variables static. 2002-06-08 17:24:09 +00:00
itojun f78cc67c13 avoid fd_set overrun. sync w/kame 2002-06-07 16:45:30 +00:00
is 5653ebf6ef gspahextoc has been EOLed. 2002-06-07 12:00:10 +00:00
is cdb48f999d This isn't in use anymore - gspa can create initialized C arrays directly. 2002-06-07 11:42:28 +00:00
wiz 982dfd0a48 Xref mopcopy instead of mopa.out. Mark up AUTHORS section. 2002-06-07 11:23:55 +00:00
wiz cb8469b275 Xref elf(5). 2002-06-07 11:23:31 +00:00
wiz 5164e3e814 Xref mopcopy instead of mopa.out. 2002-06-07 11:23:19 +00:00
itojun d6bd155256 use arc4random 2002-06-07 00:45:46 +00:00
itojun 6cebe67965 avoid fd_set overrun. sync w/kame 2002-06-07 00:45:15 +00:00
itojun 8a4859803b remove unmaintained option (#ifdef FAITH4). sync w/kame 2002-06-07 00:20:45 +00:00
itojun 2ad320ffb1 void SEGV on freeaddrinfo(NULL) 2002-06-07 00:00:19 +00:00
thorpej 7d0a93d974 Rename mopa.out to mopcopy, since it handles more than a.out these days. 2002-06-06 23:00:56 +00:00
thorpej 63e6bdedae Add Elf32 support to mopa.out (which is now quite inappropriately
named; a future commit will rename it).

Thanks to uwe@netbsd.org for testing the resulting MOP image for me.

Fixes port-vax/16867.
2002-06-06 22:52:25 +00:00
itojun 2f7d82e63d support scoped IPv6 address properly. PR 16810. 2002-06-06 21:28:49 +00:00
itojun 8dbe673a81 add syslogd and rpcbind, which links to libwrap by itself
VS: ----------------------------------------------------------------------
2002-06-06 21:27:49 +00:00
fvdl d06e65a248 Use NLIST_ELF64 for x86-64. 2002-06-05 19:39:15 +00:00
christos 4062b8f15f PR/10566: Brian Stark: explicitly document all ipv6 options.
While I am there, fix dup {+,-}ipv6 description.
2002-06-05 13:12:05 +00:00
lukem 90028da4e1 Functionality improvements:
- Add `no' keyword, which can be used in the following ways:
	no file-system SOMEFS
	no makeoptions FOO
	no options OPT1[,OPT2[,...]]
	no pseudo-device somepseudo
  This turns off a previous file-system/makeoptions/options/pseudo-device
  entry for the same item.
  Grammar support for 'no device DEV at ATTACH' added, but not
  implemented yet.

Code changes:
- Convert many simple lists to TAILQs
- Convert prefix to SLIST
- Remove argument names from prototypes.
- Don't bother with custom alloc code for hashtables; just use emalloc()
  like everything else.
- Implement ht_remove(), to remove an entry from a hash table.
  Add removed entries to a freelist for later reuse.
- Don't selectbase() devices and pseudo-devices at definition time; instead
  do it at one pass after the config file has been parsed in fixdevis().
- Rename nvhead to nvfreelist; a more apt name...
- Minor code cleanups.
2002-06-05 10:56:17 +00:00
itojun 00a0a65271 on internal udp echoback service, reject request if source address is a
broadcast address.
2002-06-05 10:03:31 +00:00
itojun 47af351cc9 recover backward compatibility in -I behavior. sync w/kame 2002-06-03 19:27:39 +00:00
itojun d3583acf8c more KNF/nroff. from deraadt via kame 2002-06-03 04:41:34 +00:00
itojun b21f26fdc1 typo 2002-06-03 04:31:29 +00:00
itojun 016477e967 more posix-compliant arg parsing. sync with kame. help from deraadt 2002-06-03 03:34:36 +00:00
itojun 4bb986ded2 KNF, from openbsd via kame 2002-06-02 23:43:21 +00:00
wiz ce2e5815e6 Wording and grammar improvements. 2002-06-02 14:56:47 +00:00