Commit Graph

6100 Commits

Author SHA1 Message Date
fvdl a3ff3a3038 Bump daddr_t to 64 bits. Replace it with int32_t in all places where
it was used on-disk, so that on-disk formats remain the same.
Remove ufs_daddr_t and ufs_lbn_t for the time being.
2003-01-24 21:55:02 +00:00
wiz e92b96aa79 grammar fix. 2003-01-24 13:08:22 +00:00
martti c7d6e073eb Add a new -a flag (automatically update files which have not been
locally modified). Patch provided by Sverre Froyen in a private mail,
slightly modified by me.
2003-01-24 13:06:06 +00:00
gehenna c8d83dee30 Accept the block-device-only devices.
Reported by ragge.
2003-01-23 15:05:45 +00:00
gehenna d0c0162e9c Not necessary to put fixdevmtab in global section. 2003-01-23 15:03:44 +00:00
gehenna 02681cddbc check the duplication or the inconsistency before evaluating fopts. 2003-01-23 15:01:54 +00:00
gehenna 27e67caceb reject the duplication of the same device-major lines. 2003-01-23 14:57:40 +00:00
gehenna 2c4d3430fb fix typo. 2003-01-23 14:55:39 +00:00
jmmv 4c30a46c79 Fix typo in first form synopsis: -k does not require -r. Okay'ed by wiz. 2003-01-22 20:50:47 +00:00
itojun 9c298b2da2 sysctl/setsockopt takes int, not u_long. 2003-01-21 09:15:54 +00:00
itojun 8a8d344fd5 fix arg size to IPV6_UNICAST_HOPS socket option. Hiroki Sato 2003-01-21 07:55:17 +00:00
simonb d7b879c6ec Grrr. So much for my ability to use grep(1) effectively. Pointed out
by Stephen Degler in private mail.
2003-01-20 07:12:12 +00:00
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
simonb 46f45ff547 KNF- blank line at start of a function with local variable declarations. 2003-01-20 01:14:35 +00:00
atatat dd0a8acd21 The next release will be 2.0, not 1.7. 2003-01-19 21:25:36 +00:00
wiz 1abdd319af No trailing whitespace, please. 2003-01-19 00:13:21 +00:00
jrf bf7aac421e Added -v extension. Approved by Klaus (kleink). 2003-01-18 18:37:07 +00:00
kleink b3df6303a9 Rename `sigset' locals to avoid symbol shadowing warning. 2003-01-16 09:38:37 +00:00
mhitch e7852b0563 Add support for amiga. 2003-01-15 06:33:13 +00:00
augustss 9ef59a8538 Flush stdout before callong daemon(). Fixes bin/19657. 2003-01-12 13:49:54 +00:00
christos 1748ad5426 fix usage [add -r] 2003-01-11 23:44:47 +00:00
agc 17a35e2e99 Introduce the notion of "preserving" an installed package.
A preserved package may not be deleted by pkg_delete(1) (unless the -f
option is given), and the preserved capability will be carried into
any binary package. pkg_add(1) will also keep the preserved capability
if it was present in the binary package.

The "preserve" capability can be given to a package by using the
PKG_PRESERVE definition in a package Makefile in pkgsrc.

Ride on the recently-bumped lib/version.h for new functionality.
2003-01-10 11:55:44 +00:00
agc 51ace543e3 Order the getopt(3) options alphabetically. 2003-01-10 10:55:25 +00:00
agc 295b90edfd order the getopt options alphabetically. 2003-01-10 10:43:50 +00:00
agc 82e88920e0 Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).
Bump lib/version.h due to added functionality.
2003-01-10 10:17:21 +00:00
taca eb37d628b3 Fix compile error with DEBUGMAIN. 2003-01-07 15:04:54 +00:00
tron 7c891035f6 Use "%u" instead "%d" in format string for bytes count reported at
termination. This should fix PR bin/19713.
2003-01-07 09:02:21 +00:00
christos 4a51bd3d7b update for struct renaming; noticed by David Laight. 2003-01-06 15:23:11 +00:00
hubertf 6824dad608 fix english 2003-01-06 14:43:01 +00:00
wiz c053751628 compatibility, not compatiblity. 2003-01-06 13:26:24 +00:00
wiz 45ad5c9584 successful with only one l. 2003-01-06 12:46:05 +00:00
wiz 5a91827c81 through, not throught. 2003-01-06 12:29:48 +00:00
wiz 7d667a5da9 Stanford, not Standford. From Chad Loder. 2003-01-06 12:18:02 +00:00
agc 60c7c151cc In pkgdb_remove(), use the return value from (*db->del), rather than
explicitly setting and checking errno.

Do some CSE in pkgdb_iter().

Use the db access functions in the proper manner.
2003-01-06 10:03:44 +00:00
thorpej 7ee41d4310 Need to -I${RPC_XDIR} now, since we don't generate the .h file
locally anymore.
2003-01-06 02:26:53 +00:00
christos cee2d9b418 exit 0 when -r 2003-01-05 22:16:22 +00:00
agc 9d61d2fff1 Add an enumerated type which is used in pkgdb_open() to specify
read-only or read-write mode.

Modify the return value of pkgdb_open() to have a more logical boolean
value.
2003-01-05 21:49:51 +00:00
agc 1b535c4ef0 Use EXIT_FAILURE, rather than hardcoding a value of '1' in err(3) and
errx(3).

Plug a memory leak by modifying the signature of
_pkgdb_getPKGDB_FILE() to take a buffer and its size, and fill in that
buffer and return it.
2003-01-05 21:27:20 +00:00
sommerfeld 8f6f405641 Use <bsd.rpc.mk> 2003-01-05 19:24:06 +00:00
pooka 732f4c9fa5 Add ${MACROS} to ${ROFF} usage to make output readable
from jbernard@mines.edu in misc/19685
2003-01-05 12:24:22 +00:00
chris 8eae0df210 Update -r option to display data in correct units, IE temperature in degC or
degF, fan speed is now correct, and indicators will now show ON/OFF.
2003-01-05 01:56:42 +00:00
lukem 9e74ffcba8 Change default permissions of newly created directories from
"0700, modified by umask", to "0777, modified by umask".
This matches the behaviour of mkdir(1) and just about every other command...

This change is useful when running with '-W', where the mode of the
new directory won't be changed to what's specified in the specfile.
(I.e, an UNPRIVED build, with a umask of 022).
2003-01-04 13:10:52 +00:00
wiz 79ebccc3b5 Sync SYNOPSIS with DESCRIPTION. From Igor Sobrado in PR 19654. 2003-01-04 01:10:47 +00:00
uwe 045242f27d Restore changes made in revision 1.20 and lost during last upgrade.
We pass HAVE_MAP_{NIS,HESIOD} on the command line, based on
USE_{YP,HESIOD} make variables, so #if 0 them here.
2003-01-03 14:07:56 +00:00
takemura bb756166c0 Used ioctl command WSMOUSEIO_GETID to identify touch panel device. 2003-01-03 04:41:49 +00:00
augustss 167e6beba4 Add -r to synopsis. 2003-01-02 14:01:30 +00:00
wiz 8b0cfb2d8e New sentence, new line. Bump date for -r description. 2003-01-02 13:55:29 +00:00
augustss 532c81c75d Document the -r flag. 2003-01-02 11:55:52 +00:00
jschauma 432d470724 Fix typos pointed out by Igor Sobrado in PR misc/19621. 2003-01-02 00:22:29 +00:00
augustss 9381d1a428 Include <paths.h> 2003-01-01 12:16:40 +00:00
augustss a57c1af9e5 ANSIfy. 2003-01-01 12:14:21 +00:00
explorer 0c77fcf312 add ENVSYS_INDICATOR and ENVSYS_INTEGER types 2002-12-31 05:27:29 +00:00
jmmv 5968c8244d Fix a typo in the yesno() function: add a missing question mark.
Approved by martti.
2002-12-27 19:47:43 +00:00
grant 653b2f1552 File types belong under 'type', not 'uname'. 2002-12-27 06:31:51 +00:00
itojun b1a19ea0e1 debugging log message committed by mistake (rev 1.8). catched by lukem 2002-12-26 14:11:28 +00:00
jmmv 0a970e7423 Add a new flag, -l, which swaps mouse buttons; this is useful for left
handed users.

Patch provided in my own PR bin/19143 with some minor changes as suggested
by wiz.
2002-12-25 19:13:53 +00:00
jmmv c29a82ed73 Fix a bug that caused the program to enter an infinite loop when selecting
an empty line.

This closes my own PR bin/19160. Reviewed by wiz.
2002-12-25 19:04:27 +00:00
lukem 3cbfaf0af4 Add -C, which dumps the specification with the full path name first,
and then all the other fields.  (I.e, like -D except with the name
first instead of last).
Consistenly strsvis(3) encode path names (even for -C and -D).
2002-12-23 04:40:19 +00:00
wiz ea577b210e Debugging is usually spelled with three gs. 2002-12-22 13:50:35 +00:00
wiz dfb66d510f instead, not insteed; from Adrian Mrva. 2002-12-21 12:58:38 +00:00
wiz 51146674bf Foundation has only one a, from Adrian Mrva. 2002-12-21 12:57:44 +00:00
wiz 7f3797c977 directory has a c. From Adrian Mrva. 2002-12-21 12:52:13 +00:00
lukem 05ac799971 enable sunlabel 2002-12-21 12:49:34 +00:00
wiz 0691bb2061 Fix order of letters in calculated, from Adrian Mrva. 2002-12-21 12:48:51 +00:00
wiz 79a9d12419 always has only one l, from Adrian Mrva. 2002-12-21 12:48:05 +00:00
wiz db8b42a060 hardware with a d, from Adrian Mrva. 2002-12-21 12:47:21 +00:00
wiz 299ca8dc8b Sync with dist spelling fixes. 2002-12-21 12:40:49 +00:00
wiz 34574e798b outgoing with a final g, not t; from Adrian Mrva. 2002-12-21 12:32:24 +00:00
lukem 52c78c8a7d - make "device" non optional and remove "-d device", and actually make
it work with "device"...
- tweak the docco a bit
2002-12-21 08:11:28 +00:00
lukem 133ea6e570 improve help display
minor KNF
2002-12-21 06:53:29 +00:00
wiz 46dd4805d4 Drop trailing whitespace. 2002-12-18 19:37:26 +00:00
hannken 487a4fb83a Set explicit database layout. Default is filesystem block size
and hashdb doesn't work for bucket size >= 65536.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2002-12-15 18:23:00 +00:00
takemura 56d35e34e6 Saved screen size (minX, maxX, minY, maxY) as well as calibration samples.
This change breaks parameter file format compatibility.
2002-12-15 09:13:21 +00:00
christos 11e29bdcef don't use hand-rolled MNT_FLAGS 2002-12-11 22:19:58 +00:00
bouyer c841e4e679 Add SIGINFO support. 2002-12-10 22:42:00 +00:00
fvdl 174b474772 Include -DNLIST_ELF64 for x86_64. 2002-12-10 17:59:41 +00:00
lukem 92a480785a correct description of -D 2002-12-09 13:42:08 +00:00
thorpej f33f7a14c5 Avoid strict alias warning. 2002-12-06 15:21:08 +00:00
thorpej 4c278745df Avoid conflict with reserved identifier "logf". 2002-12-06 15:17:18 +00:00
thorpej 61456e3f52 Avoid conflict with reserved identifier "exp". 2002-12-06 15:15:29 +00:00
thorpej 0f8f1290fe Avoid conflict with reserved identifier "log". 2002-12-06 15:00:14 +00:00
jonb e2fdabc65c Fix the way $EDITOR is started so the variable can have flags in addition
to the name of the binary to run.
2002-12-05 22:54:45 +00:00
bouyer fecc966e36 Add new command-line flags, which ease edquota use in bach scripts:
- -f, which allows to restrict edquota to only one quota-enabled filesystem
- -s and -h, which allows to set soft and hard limits respectively, without
  the need to edit a file.
2002-12-04 21:01:13 +00:00
rtr f88de63c1b Document additional line required to emulate sendmail using postfix.
Without line error will be appended to mailed output of daily script.
Solves part of PR bin/18800.
Patch provided by Ryo HAYASAKA <ryoh@jaist.ac.jp>
2002-12-01 11:35:33 +00:00
lukem 4d5f70e6b6 add DPADD for ${LIBUTIL} 2002-11-30 06:04:57 +00:00
lukem 6e171ecdf8 clean up {LD,DP}ADD. no need to set WARNS=1 here 2002-11-30 06:00:42 +00:00
lukem d348d3d723 tweaks for fparseln(3) move from libutil to libc:
- remove #include <util.h> if nothing else needed it
- remove LDFLAGS+=-lutil if nothing else needed it
2002-11-30 03:10:53 +00:00
lukem d55058d0cc oops; libutil is (currently) needed by ../mtree/spec.c for fparseln 2002-11-30 02:09:44 +00:00
lukem f9b27e4de2 - remove -lutil; nothing here needs it
- no need to reference ../../bin/dd now that strsuftoll(3) is in libc
2002-11-30 02:06:51 +00:00
christos 7fc3700a4c ops_autofs.c is gone. 2002-11-29 23:25:06 +00:00
christos 1339a09219 catch up with 6.1b1 2002-11-29 23:23:59 +00:00
lukem d08243260c convert from strsuftoull() (from ../../bin/dd) to strsuftoll(3) in libc 2002-11-29 13:06:32 +00:00
grant 0a51ab8aee replace use of alloca() with the more portable malloc()/free(). 2002-11-29 08:31:06 +00:00
grant 58306652d2 avoid non-constant initializer errors by changing hack to workaround
gcc warning to a slightly different hack.
2002-11-29 02:07:34 +00:00
taca 445a837973 Add 'p' option to TARX_CMD's argument for preserving file mode.
This fixes the problem that pkg_add(1) drops setuid/setgid bit.

This problem occurs on pax(1) based tar environment.
pkgtools/pkg_install should be fixed, too.
2002-11-28 23:52:31 +00:00
agc 64f5916734 Don't use special-case code for the '_' modifier, just add it to the
modifier table.  Fixes a problem pointed out by Rene Hexel.
2002-11-26 14:46:45 +00:00
fvdl 3658e0287e Add x86_64 if clause to get correct types. 2002-11-25 22:33:39 +00:00
jdc 99d5546aa4 Add a call to use_default_colors(). 2002-11-25 09:11:35 +00:00
fvdl 03adc171d1 Don't explicitly add -Wall -Werror -g to CFLAGS, the .mk infrastructure
already takes care of this, and this makes NOGCCERROR builds fail.
2002-11-24 21:54:38 +00:00
jschauma d571e4f803 Do not abort incomplete deletion if the cwd was removed. Instead, warn,
stay in no-longer existing dir and continue with removal of db-files;
otherwise, the packages contents would be removed, but the package not
uninstalled.  Pointed out by Grant in PR pkg/18384.  OK'd by hubertf.
2002-11-23 22:31:18 +00:00
simonb 1bee87041f Add CWARNFLAGS+=-Wno-format-y2k so this builds again with the pc532
toolchain.
2002-11-20 05:33:58 +00:00
itojun a426f44395 sync w/ kame source from 2002/11/20.
- plug some memory leaks
- correct phase 2 proposal reqid handling
- check for fd_set overrun
2002-11-20 03:35:57 +00:00
atatat 15d85dcb14 Alter config so that it emits a config_time.src file (the source file
for config_time.h) that contains, for example:

/* Sun Nov 17 05:37:51 2002 GMT */
#define CONFIG_TIME     1037511471
#define CONFIG_YEAR     2002
#define CONFIG_MONTH    11
#define CONFIG_DATE     17
#define CONFIG_HOUR      5
#define CONFIG_MINS     37
#define CONFIG_SECS     51

These values represent the current time as of when config was last
run, so that functions (eg, inittodr()) can use these values instead
of being updated once every year or so with the "current" time.

The associated modification to Makefile.kern.inc makes config_time.h
depend on this depend on this and the kernel Makefile, so that
granularity of kernel builds is not reduced.
2002-11-19 04:29:19 +00:00
atatat 399c5e40ce Define KERNEL_BUILD at the top of the emitted kernel Makefile. This
means that the appropriate combination of checking for KERNEL_BUILD,
RELEASEDIR, DESTDIR, and/or BSD_PKG_MK, can allow the setting of COPTS
or CFLAGS (or anything else) depending on the specific task at hand.
Personally, I think that per-kernel install rules are the best part.
2002-11-19 04:24:16 +00:00
thorpej 42ea935cff Add a "package" keyword, which makes it somewhat easier to add 3rd
party software packages to the kernel.  The statment:

package "../path/to/some/directory/files.package"

is equivalent to the sequence:

prefix "../path/to/some/directory"
include "files.package"
prefix
2002-11-17 23:36:19 +00:00
thorpej aceaa7e184 When emitting -I directives for prefix'd paths, use EXTRA_INCLUDES
rathern than INCLUDES, so that it works with sys/conf/Makefile.kern.inc.
2002-11-17 22:10:05 +00:00
wiz c59faa6fa4 Bump date. Sort options. New sentence, new line. Other minor fixes. 2002-11-17 01:26:30 +00:00
dyoung 8804a2c4e6 Removed deprecated flags from wiconfig(8) manual page. 2002-11-16 22:56:06 +00:00
dyoung 3e30600b49 Add flag -g, set fragmentation threshold. Also, query RSSI->dBm
conversion constant.

Remove flags

  -c Create IBSS: use ifconfig wi0 mediaopt adhoc, which turns on the
                  802.11-compliant behavior
  -e enable WEP: use ifconfig wi0 nwkey ...
  -f set channel: use ifconfig wi0 chan ch
  -k set WEP keys: use ifconfig wi0 nwkey ...
  -n set desired SSID to join in IBSS mode: use ifconfig wi0 nwid id
  -p set the desired port type: use ifconfig wi0 mediaopt ...
  -q set SSID to create: use ifconfig wi0 nwid ...
  -t set TX rate: ifconfig wi0 media ...
  -A set authentication type: ifconfig wi0 nwkey ...
  -S set maximum sleep interval: ifconfig wi0 powersavesleep ...
  -P enable power management: ifconfig wi0 powersave
  -T select WEP key for transmitted packets: ifconfig wi0 nwkey n:k1,k2,k3,k4
  -Z unimplemented

which duplicate ifconfig functions. This leaves flags

  -a access point density
  -o print out statistics counters
  -s set station name for Lucent WaveMANAGER software
  -M enable/disable "microwave oven robustness"
  -R enable/disable roaming function

which affect wi(4)-specific parameters, and flags

  -D scan once for access points
  -d maximum data length
  -m set MAC address
  -r set RTS/CTS threshold

which affect 802.11-standard parameters and activities (so may not
belong in wiconfig, in the long-term). The new flag, -g, also
affects an 802.11 parameter.
2002-11-16 22:39:57 +00:00
itojun 07780ab297 die if strdup failure 2002-11-16 15:43:52 +00:00
itojun 9593086444 use strlcpy 2002-11-16 04:34:13 +00:00
itojun 881cb512fa strncpy -> strlcpy to ensure string termination 2002-11-16 04:29:01 +00:00
itojun 7bd25b06e9 die if out-of-range address is specified to -p 2002-11-16 04:20:42 +00:00
itojun 343d3d8f80 die if out-of-range uid/gid is specified. 2002-11-16 03:59:36 +00:00
itojun 240664d004 strto* audit. 2002-11-16 03:36:17 +00:00
agc ab7e447f08 Bump version number after adding "alpha" and "beta" version modifier
recognition.
2002-11-14 11:57:15 +00:00
agc 03ce8889fa In addition to the existing "rc" modifier for a package version, add
support for "alpha" and "beta" versions, which sort before "rc".  Move
to table-based modifier recognition.
2002-11-14 09:40:23 +00:00
enami 69a28166e0 Fix .Nm usage. 2002-11-09 12:10:48 +00:00
agc d6b0aed068 When deleting a user with preservation, use a password of
"*************" rather than a single asterisk - it's just as difficult
to hash to the longer password since the asterisk character itself is
not in its alphabet, and pwd_mkdb now thinks it's a valid DES password.
2002-11-08 11:53:20 +00:00
agc 7843f87c3d Factor out some common code. 2002-11-08 11:44:37 +00:00
rafal ecf0596577 Convert to use getifaddrs(3) to get interface names; this is mostly removal
of grotty code to unpack data structures returned by the SIOCGIFCONF ioctl.
2002-11-08 03:40:28 +00:00
fvdl d4f83aa2bb Use a non-blocking SVC for TCP connections. 2002-11-08 00:14:50 +00:00
jrf 2547287233 Corrected the comment and error message. 2002-11-07 21:06:04 +00:00
jrf fb826ed9ad Detect NULL characters in a config file and error out. 2002-11-07 20:07:07 +00:00
jdolecek 01188cb460 constify structs, print also pipes for -f 2002-11-06 09:32:26 +00:00
thorpej 54a7ee3470 Allow more than one interface to be specified on the command line. 2002-11-05 14:18:04 +00:00
grant f437cb0639 s/anyways/anyway/ 2002-11-05 07:34:31 +00:00
thorpej 314b43faa0 For ELF, set d->loadaddr to 0, as we do for a.out.
On both my 4000/60 and SIMH, a boot program NOT loaded at 0 consistently
is loaded +0x5200 too high in memory, which which causes a fatal trap back
into the console even before the self-relocating code can run.  "wHATEver."
2002-11-05 06:08:29 +00:00
thorpej 1a49eb0ca9 Make sure to fill in the load address in the dest. MOP header. 2002-11-05 05:06:05 +00:00
thorpej ac17ec7137 Show the load address in hex. 2002-11-05 04:54:26 +00:00
enami 0ad4042cc2 ... and fix typos which makes wrong display. 2002-11-02 06:35:30 +00:00
enami a65c9b21f2 Cosmetic changes. 2002-11-02 06:32:10 +00:00
wiz fdc93ee90f Add tag for yesterday's state. 2002-11-02 02:07:43 +00:00
simonb c79652b287 Print a newline between lines in -x mode. 2002-11-01 14:02:21 +00:00
mrg 3cf4c73d05 iostat(8) and systat(8) support for separate read/write disk statistics.
"iostat -x" now shows these (ala linux/solaris), but this is only splitting
the read/write bytes/transactions, not adding any new metrics.  "systat
iostat" now has two new commands to switch between combined/separate mode
for both it's numbers & bar modes.
2002-11-01 12:47:55 +00:00
petrov 664489a4cb follow-up rpcgen changes. 2002-10-31 08:39:13 +00:00
wiz e597be7d4e Fix typo. Found by Adrian Mrva. 2002-10-29 16:18:06 +00:00
wiz c1f53358ea Fix typos. Found by Adrian Mrva. 2002-10-29 16:16:58 +00:00
wiz a125d07668 Fix typos. Found by Adrian Mrva. 2002-10-29 16:12:25 +00:00
itojun 41b5d4f9af use strtoul, not atoi.
don't print strerrno() if errno == 0 on fatal().
sync w/kame
2002-10-26 20:10:02 +00:00
hubertf 4d58bf2551 Properly re-implement hilighting of the dialogue with the ftp(1)
process.

Thanks again for the throughout notification I got before that
was removed! :(
2002-10-26 14:43:43 +00:00
hubertf 4d4c17a923 use size of the right buffer 2002-10-26 12:37:00 +00:00
thorpej 2b3b2f08d6 Rather than relying on pure luck to get the log file on STDERR_FILENO,
explictly dup2 the log file dscriptor to STDERR_FILENO and close the
original.
2002-10-26 01:47:52 +00:00
thorpej d2ed7ebdd1 * Use STDOUT_FILENO instead of 1.
* Pass the file descriptor to request_init() (libwrap) so that
  it can actually do something useful later in fromhost().
2002-10-26 01:46:31 +00:00
wiz 3ced2f4983 Mention moused(8). From Julio Merino in PR 18801. 2002-10-25 21:02:45 +00:00
wiz 433a9df61c Mention wsmoused(8). From Julio Merino in PR 18801. 2002-10-25 21:02:25 +00:00
wiz e4a36f578d Whitespace nit. Use .Nm instead of crossreferencing ourselves. 2002-10-24 16:22:49 +00:00
jonb 996cd2788d Add a better hint about proper kernel configs than just "See Also sysctl(8)" 2002-10-24 16:06:05 +00:00
itojun 22a4160612 be more picky about argument parsing (check ERANGE from strtoul). sync w/kame 2002-10-24 12:54:14 +00:00
itojun f062d0205a make args u_long not to lose accuracy due to conversion/overflow.
from mark@openbsd
2002-10-23 03:48:07 +00:00
itojun 1d2f66eb21 add DPADD 2002-10-23 01:11:09 +00:00
itojun 86c2fb8d52 style 2002-10-23 01:09:50 +00:00
itojun 0a52cefa4d add DPADD 2002-10-23 01:09:37 +00:00
itojun bfd7fc27b3 add DPADD 2002-10-23 01:08:01 +00:00
grant 70e6e04099 Fix date typo, Oct 27 -> 17.
While it would be nice to be able to add features ahead of time,
it is not possible yet :)
2002-10-21 13:55:11 +00:00
lukem 307f4019a4 tweak usage now that multiple interfaces are supported... 2002-10-21 01:33:02 +00:00
provos 32b88027c7 use readlink with bufsize - 1; approved thorpej. 2002-10-19 20:33:17 +00:00
itojun c025861aba correct LBL_ALIGN behavior, sync with tcpdump.org.
enable LBL_ALIGN codepath to use byte-by-byte fetch in extract.h.
should correct PR 18688/18398.
2002-10-18 23:13:57 +00:00
thorpej 2c07094b2a Allow more than one interface to be specified on the command line. 2002-10-17 19:13:50 +00:00
soren dc8c2ef8d0 Postfix does not support the 'send-mail' arg. 2002-10-17 16:47:47 +00:00
wiz 26acd804be Fix typo in last (hi christos). 2002-10-17 08:46:00 +00:00
christos d5d6fac25a Jeez! Delete hard-coded vt100 sequences. This could be done using termcap,
but why bother?
2002-10-17 03:34:20 +00:00
christos 590fa669c8 - eliminate the hard-coding of pathnames in the default install.
- all command executions now use the path [execvp/execlp/system].
- normalize the macro names as <COMMAND>_CMD.
- in some OS's full pathnames for commands can still be provided, but this
  is not the default.

This was needed to fix -DTAR_FULLPATHNAME="/usr/bin/tar"
2002-10-17 03:31:33 +00:00
takemura 976f1e210f Enabled apm command device node for hpcmips and put apm.8 and zzz.8 man pages
into mi directory.
2002-10-14 06:31:37 +00:00
soda bcb7e65b95 revision 1.5 missed to add option -N and -M to 3rd argument of getopt(3). 2002-10-12 08:57:16 +00:00
thorpej 93854e538b Allow devices to be orphaned, but emit an informational message when
this occurs.
2002-10-11 02:02:24 +00:00
thorpej a27b30b1f8 Oops, fix editor mistake. 2002-10-11 01:54:50 +00:00
thorpej bd86bbe5e9 Add support for specifying attributes as option-dependencies,
allowing for the following:

file foo.c	foobar | bar

defflag BAR

device foobar

...to be expressed in the following (more natural) way:

define foo
file foo.c	foo

defflag BAR: foo

device foobar: foo
2002-10-11 01:48:25 +00:00
thorpej 1f5fa983ab Add support for specifiying attribute dependencies on attributes. This
allows for the following:

define foo
define bar { }: foo

device foobar: bar

An instance of "foobar" will select "bar", which will in turn select
"foo" due to "bar"'s dependency on "foo".

Circular dependencies are not allowed, and a dependency may also not
be an interface attribute.
2002-10-09 20:17:00 +00:00
thorpej 9b10cf346e Use DVUNIT_ANY. 2002-10-09 03:10:19 +00:00
lukem 6e980262a4 Remove convoluted code to work around missing lch{flags,mod,own}();
instead, rely upon libnbcompat to provide a workaround (which returns
an error if the target is a symlink).
Should fix another MacOS X build issue due to missing lchown(2).
2002-10-08 00:34:08 +00:00
heinz c624907cf7 fix small typo 2002-10-06 17:13:24 +00:00
lukem 64beaeafc8 - Check HAVE_LCHFLAGS for lchflags(2) support, rather than assuming
that HAVE_STRUCT_STAT_ST_FLAGS implies this.
- Set HAVE_LCHFLAGS for native builds
- Clean up {CLEAR,SET,CHANGE}FLAGS macros, and only provide if
  HAVE_STRUCT_STAT_ST_FLAGS is set.

(Fixes compilation as a tool on MacOS X, noted by Allen Briggs.)
2002-10-06 01:36:09 +00:00
thorpej d90d300b7b Overhaul the way cfattach structures are looked up. The cfdata entry
now carries the name of the attachment (e.g. "tlp_pci" or "audio"),
and cfattach structures are registered at boot time on a per-driver
basis.  The cfdriver and cfattach pointers are cached in the device
structure when attached.
2002-10-04 01:50:53 +00:00
lukem ba51c8dc18 alpha also supports append & sunsum 2002-10-03 07:27:50 +00:00
lukem 454998fc21 correct comment 2002-10-03 05:31:25 +00:00
wiz 40a72a2371 Undo last, on request by agc. 2002-10-02 17:30:08 +00:00
thorpej ab0f429042 Add a trailing ; to CFDRIVER_DECL. 2002-10-02 16:49:03 +00:00
wiz 4fcce79872 utilize American spelling. 2002-10-02 15:45:32 +00:00
wiz 9287b22a99 Fix typo. Spotted by Adrian Mrva. 2002-10-02 15:41:53 +00:00
wiz 8ea866f1ab between with three es, and positive with two is. 2002-10-02 15:30:11 +00:00
grant 7d8ff25974 new sentence, new line. 2002-10-02 13:49:11 +00:00
itojun dd84b30b3c license clarification, from openbsd 2002-10-02 06:47:48 +00:00
itojun 901d58cdce poll.h, not sys/poll.h 2002-10-01 05:56:12 +00:00
itojun c3cbda0efb move mbone tools out of basesrc, as they use part of mrouted 2002-10-01 03:50:07 +00:00
itojun 4adeccac17 fix .PATH to mrouted 2002-10-01 03:40:31 +00:00
itojun 9bbfbbb676 move mrouted out of basesrc, as it carries non-BSD license.
agreed w/ core.
2002-10-01 03:30:50 +00:00
itojun 7cf12fa457 valid_password_length() is a boolean function, so there's no point in
having "> 0" in if clause.
2002-10-01 02:50:51 +00:00
thorpej f4a263573b Use CFDRIVER_DECL(). 2002-09-30 18:54:36 +00:00
agc 92ef00aeba Update previous to reflect reality. For blowfish passwords, the salt
can be a variable length field, so check the (fixed length) password
length, rather then the length of the whole password+salt+cipher.

Use a cipher type of "$2a" for blowfish.
2002-09-30 14:15:47 +00:00
agc e7bdda1971 Handle PR 18474 in a more safe and scalable fashion - keep a table of
password types, and their associated lengths, and check in useradd or
usermod whether the given encrypted password has the correct length.

This removes the (duplicated) hardcoded lengths which had crept in
with the last commit, and also checks the length of the given password
against the expected length.
2002-09-30 10:32:40 +00:00
itojun 84237f231a support MD5/blowfish password. PR 18474. 2002-09-30 04:05:22 +00:00
wiz b1c7ac0e6d "definitions" has lots of 'i's, but that's not reason to leave one out. 2002-09-29 23:23:56 +00:00
martti a645b3b843 Don't execute /etc/postinstall if -b was used. 2002-09-28 06:17:16 +00:00
thorpej bf97c13c6c Declare all cfattach structures const. 2002-09-27 20:41:46 +00:00
grant 34e29c6844 fix typo, from Julio Merino in bin/18440. 2002-09-27 18:20:52 +00:00
itojun 88b96862d4 IPV6_V6ONLY setsockopt has to happen before bind(2). PR 18435 2002-09-27 14:43:00 +00:00
thorpej d1ad2ac4f2 Rather than referencing the cfdriver directly in the cfdata entries,
instead use a string naming the driver.  The cfdriver is then looked
up in a list which is built at run-time.
2002-09-27 02:24:06 +00:00
agc e66e457180 <sys/map.h> is no more - don't try to include it. 2002-09-26 21:30:30 +00:00
thorpej 09354b26ef Fix an uninitialized pointer bug in emitcfdata(). 2002-09-26 21:07:49 +00:00
onoe 55ef0eb8b9 Changed the name for resource id 0xfd45 to match the reality.
WI_RID_OWN_BEACON_INT -> WI_RID_CUR_BEACON_INT
2002-09-26 16:52:44 +00:00
thorpej fc0fe0347d Overhaul the way parent attachments are specified; instead of using
a vector of indices into the cfdata table to specify potential parents,
record the interface attributes that devices have and add a new "parent
spec" structure which lists the iattr, as well as optionally listing
specific parent device instances.

See:

    http://mail-index.netbsd.org/tech-kern/2002/09/25/0014.html

...for a detailed description.

While here, const poison some things, as suggested by Matt Thomas.
2002-09-26 04:07:35 +00:00
wiz 5e977f5ead Ispell. Begin new sentences on a new line. 2002-09-26 01:41:51 +00:00
wiz 5dbdce59f0 Fix date. 2002-09-25 00:34:44 +00:00
wiz e9df1e7eda Drop trailing whitespace. 2002-09-25 00:09:38 +00:00
mycroft 29ac8aa531 Fix PR 18391, from Geoff Wing. 2002-09-24 17:32:03 +00:00
itojun b5c1ff7fae set IPV6_V6ONLY to 1 to avoid complicated access control issue
(libwrap takes care of it, but just to be sure)
2002-09-24 13:53:54 +00:00
itojun 2eca5c16aa set IPV6_V6ONLY to 1. 2002-09-24 13:48:14 +00:00
itojun c41e40e20e set IPV6_V6ONLY socket option for AF_INET6 socket, to avoid
complicated access control issue due to IPv4 mapped address.
2002-09-24 13:31:33 +00:00
uebayasi 6a49247a32 Sprinkle .Xrs to packages(7). 2002-09-24 03:18:00 +00:00
mycroft aae6c28cf9 null commit 2002-09-23 12:44:34 +00:00
itojun f46e921837 poll.h, not sys/poll.h 2002-09-23 03:36:03 +00:00
dbj df3f757254 add mkdevsw.o to OBJS 2002-09-22 06:22:50 +00:00
christos 221d636e59 PR/15692: Love: specify ipsec policy for mountd. 2002-09-21 20:35:00 +00:00
itojun 3ca6603d44 sys/poll.h -> poll.h
reduce diff w/ kame tree.
2002-09-20 22:04:31 +00:00
mycroft a5f0bfc173 Set fd of unused pollfd entries to -1. 2002-09-20 19:51:33 +00:00
mycroft 012f202229 Minor simplification. 2002-09-20 19:49:59 +00:00
mycroft 39f9b8328c Set fd of unused pollfd entries to -1. 2002-09-20 19:48:58 +00:00
mycroft ab637af34b Minor cosmetica. 2002-09-20 19:23:58 +00:00
mycroft f90ffa1f0c select() -> poll() 2002-09-20 15:23:06 +00:00
mycroft bead6c7cd4 Use STDIN_FILENO/STDOUT_FILENO as appropriate. 2002-09-20 15:23:05 +00:00
mycroft 1ae4d43ce6 select() -> poll() 2002-09-20 15:15:49 +00:00
mycroft ae69ed2b35 select() -> poll() 2002-09-20 14:16:03 +00:00
mycroft 562704fd8f select() -> poll() 2002-09-20 13:30:18 +00:00
mycroft 648377324d select() -> poll() 2002-09-20 13:08:21 +00:00
mycroft c2748cb222 select() -> poll() 2002-09-20 06:02:25 +00:00
lukem 1b2d905cd0 cast "%ld", xxx.tv_sec to a long 2002-09-20 04:12:42 +00:00
mycroft 176cc386e1 If we can't set FD_CLOEXEC on a listening socket, close it rather than allowing
it to be passed down to inetd's children.
Note: Setting FD_CLOEXEC can't actually fail, but we did check for the error
anyway...
2002-09-19 21:59:03 +00:00
mycroft 59edfd2c03 Simplify the accept() code a little -- sockaddr_storage is fine for both
AF_LOCAL and AF_INET{,6}.
2002-09-19 20:35:56 +00:00
mycroft 4082cae6ac If we exit because the pid file is locked, syslog that. 2002-09-19 20:22:32 +00:00
mycroft e1a3e519ec select() -> poll(), nanosleep() 2002-09-19 20:08:58 +00:00
mycroft 05abee23d9 select() -> poll(), nanosleep() 2002-09-19 16:45:57 +00:00
lukem 805b400ba7 use NETBSDSRCDIR as appropriate 2002-09-19 12:08:37 +00:00
mycroft 478dc25d0a select() -> poll() 2002-09-19 03:31:19 +00:00
mycroft fbf6498012 select() -> poll() 2002-09-19 03:04:13 +00:00
mycroft 7fa9b49281 select() -> nanosleep() 2002-09-19 02:59:20 +00:00
mycroft 45e43d0ec5 select() -> poll()
Also clean up some very ugly code.
2002-09-19 02:49:41 +00:00
mycroft 3e966fa349 select() -> poll()
Also, remove a call to path_create() that causes the `prepend' path held by
pkg_perform() to be deleted, causing a core dump later when pkg_perform()
tries to remove it itself.
2002-09-19 02:13:57 +00:00
mycroft 01d349833e select() -> poll()
Also, change the way console input is passed to the subprocess -- instead of
echoing it in sushi, instead set the pty to cooked mode and have it do any
echoing.  This will work better if we have scripts that accept input (sometimes
we don't want it visible; e.g. if it's a password) and also has the side effect
of allowing a command to be interrupted with ^C.
2002-09-19 00:45:47 +00:00
mycroft 8efb63f066 select() -> poll(), nanosleep() 2002-09-19 00:01:33 +00:00
mycroft 36b12b30ec select() -> poll() 2002-09-18 23:33:37 +00:00
mycroft ae627c1271 select() -> nanosleep() 2002-09-18 23:27:25 +00:00
mycroft 7f79942c2d select() -> nanosleep() 2002-09-18 23:18:44 +00:00
mycroft 9b3fb0ad17 Fix pluralization in a syslog message. 2002-09-18 23:16:13 +00:00
mycroft c563d4c7c3 select() -> poll() 2002-09-18 23:13:39 +00:00
mycroft 720a68f0ca select() -> poll() 2002-09-18 20:58:56 +00:00
lukem c52b93f508 minor makefile delint 2002-09-18 13:31:52 +00:00
lukem 17d72c8a6b use NETBSDSRCDIR as appropriate 2002-09-18 03:54:26 +00:00
thorpej 3b08abd277 * Eliminate the USE_NEW_TOOLCHAIN variable. Instead, split it into
two variables:

  TOOLCHAIN_MISSING -- set to "yes" on platforms for which there is
  no working in-tree toolchain (hppa, ns32k, sh5, x86_64).

  EXTERNAL_TOOLCHAIN -- if defined by the user, points to the root of
  an external toolchain (e.g. /usr/local/gnu).  This enables the cross-build
  framework even for TOOLCHAIN_MISSING platforms.

  If TOOLCHAIN_MISSING is set to "yes", MKGDB, MKBFD, and MKGCC are all
  unconditionally set to "no", since the bits are not there to build.

  If EXTERNAL_TOOLCHAIN is set, MKGCC is unconditionally set to "no",
  since the external toolchain's compiler is not in-sync with the
  in-tree compiler support components (e.g. libgcc).

* Set MACHINE_CPU much earlier in bsd.own.mk, so that more tests in
  that file can use it.
2002-09-17 23:18:25 +00:00
manu a9fed43086 Initial support for APM on hpcarm (just enough to get battery state) 2002-09-16 19:58:58 +00:00
thorpej 9aa45a9c40 Fix typo (sigh). 2002-09-16 00:12:54 +00:00
thorpej 677d45a6a2 The new comment in the file says it all:
# UNDER NO CIRCUMSTANCES SHOULD THIS MAKEFILE TEST THE OUTPUT OF uname!!
# DOING DO BREAKS CROSS COMPILING.
2002-09-15 23:56:57 +00:00
thorpej 3b1c84c6b5 Resolve rpcgen's path in a way that works with other shells. 2002-09-14 05:35:13 +00:00
mycroft a939a62069 config.[ch] -> manconf.[ch] 2002-09-13 20:40:04 +00:00
itojun 0319b78e54 copyright clarification. from openbsd
1.
Paul Mackerras and the Australian National University have worked things
out, and as a result, Paul now owns copyright on all these files, with the
proper terms.

2.
and... we managed to contact "Eric Rosenquist" <eric@rosenquist.com> through
the help of people who found him: first one was nick.stott@cogeco.ca
This now has a better license.  Two authors left to go.
2002-09-13 14:32:11 +00:00
pooka 87a8e425d5 make usrdevicenames match reality better
from Ilpo Ruotsalainen
2002-09-13 14:29:15 +00:00
christos d0deebbba7 Add a simple test to see if the whoami functionality works. 2002-09-11 18:19:42 +00:00
enami 78948a7123 Salvage pre-devsw config support so that one can config such as other
branch's kernel.
2002-09-11 06:20:09 +00:00
itojun 2237adde2a use HUGE_VAL defined in <math.h> instead of 1e500 for positive infinity.
gcc -pedantic audit by deraadt@openbsd.org
2002-09-08 09:28:23 +00:00
itojun bdbbb53d75 signal handler must take "int" arg. from deraadt, sync w/kame 2002-09-08 01:42:55 +00:00
itojun 52c469ffaa socklen_t audit. from deraadt, sync w/kame 2002-09-08 01:41:12 +00:00
itojun 1ddc65b732 socklen_t audit. KNF. signal handler must use _exit(), not exit().
from deraadt, sync w/kame
2002-09-08 01:40:08 +00:00
junyoung b255e80b6f Make this compile. 2002-09-06 13:59:09 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
agc 2f14b22182 Describe what this utility does a bit better. Pointed out by Curt Sampson. 2002-09-06 08:59:25 +00:00
abs 2cbe5b958f Add back __attribute__() data for pstatus() removed by error in last commit.
Noted by wiz.
2002-09-04 13:49:20 +00:00
abs 8531949548 When -r is given actually pass the file through of, and also enable if. 2002-09-03 18:35:11 +00:00
atatat 692fefdd0e Move pmap(1) to /usr/bin (from /usr/sbin) where it belongs. 2002-09-01 20:32:43 +00:00
atatat fd654ccfe7 One more spelling fix 2002-08-31 19:44:59 +00:00
wiz 2422729483 Mdoc, grammar, and typo fixes. Remove trailing whitespace. 2002-08-31 19:33:58 +00:00
atatat 1a3525a866 Add pmap(1) command 2002-08-31 19:11:16 +00:00
atatat 0df8113ba6 Add a pmap(1) command that is effectively the same in function as the
Solaris command by the same name.  pmap(1) prints out the given
process's address space, each vm_map_entry at a time, with several
different output formats.

I wrote this tool as an autodidactic means of learning something about
UVM.
2002-08-31 19:09:30 +00:00
onoe b719e19a2f Fixed trivial bugs in previous commit:
unnecessary socket is opened, and non-root user failed to execute...
2002-08-30 04:02:44 +00:00
onoe 4a58d16e34 Add -I (use icmp) option as traceroute.
sync w/kame
2002-08-30 03:57:20 +00:00
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