Commit Graph

7401 Commits

Author SHA1 Message Date
wiz a74bb8d083 Begin sentence with upper case letter, and uppercase an acronym. 2005-10-31 15:30:44 +00:00
wiz 8ab58d4943 Sync usage with man page. 2005-10-31 15:29:23 +00:00
wiz 14a2986cc2 Small improvements. Sort options. From jmc@openbsd. 2005-10-31 15:28:53 +00:00
wiz 25988cacf4 Sync usage with man page. From jmc@openbsd. 2005-10-31 15:22:10 +00:00
wiz 432e7125bf Use .Pp instead of less usual .Lp. From jmc@openbsd. 2005-10-31 15:21:02 +00:00
wiz 129d953b7a Improve description for /var/run/rtsold.dump. From jmc@openbsd. 2005-10-31 15:19:45 +00:00
wiz 710dff7215 Small cleanup. From jmc@openbsd. 2005-10-31 15:17:22 +00:00
wiz e7e684f30a Sort options. From jmc@openbsd. 2005-10-31 15:14:54 +00:00
wiz 3a6af42b59 Bump date for previous. 2005-10-31 11:34:55 +00:00
dyoung 2fa0e02b0b Remove the cd9660_inode hashtable for hard-links support, and re-use
the fsinode for the same purpose, per Luke Mewburn's suggestion on
source-changes@.
2005-10-31 08:29:19 +00:00
joerg 82543d8598 Treat FTP error 450 like 550, otherwise pkg_add from a proftpd server
can hang.

Submitted-by: Eirik Nygaard
2005-10-30 21:52:02 +00:00
dyoung 1da546647c Add hard-link support: keep a hashtable that maps inodes for
regular files on the source filesystem to the offset of the first
data block on the target filesystem.  Don't allocate blocks for a
file a second time (i.e., if it is already present in the hashtable).
Avoid writing the blocks of a file twice (use the FS_WRITTEN flag
in fsinode->flags for this purpose).
2005-10-30 09:27:49 +00:00
dyoung f334b70aa1 Normalize {err,warn}{,x} uses. 2005-10-30 07:40:45 +00:00
dyoung 4a3fce43c0 Now that I understand what order boot-images and boot-entries are
intended to be kept on the boot-images and -entries lists, keep
them in that order: images grouped and entries grouped by system,
with later images nearer the front of the list.

*Really* apply boot options to the last boot-image specified.
2005-10-30 07:33:57 +00:00
dyoung 3c2cee9d4a Bug fix: record the actual number number of 512-byte "virtual"
sectors in the Sector Count field of the Initial/Default Entry in
the "El Torito" Boot Catalog, instead of blithely writing 1 (!!)
into the Sector Count field.  Ditto the Section Entries.

Remove last remnants of cd9660's unsupported boot-load-size option.

Really use cd9660's boot-load-segment argument.

Change the boot images list from a LIST to a TAILQ.

Re-implement CD9660_BLOCKS() with howmany().

Introduce ELTORITO_DPRINTF and some debug messages.

Zero memory malloc'd in the El Torito code.

Revise some debugging outputs.

Insert a new boot-image on the boot-images list after the last
boot-image for the same architecture.  It makes a (trivial) functional
difference.

Miscellaneous cosmetic changes.  Remove useless variable-assignment.
2005-10-30 06:45:46 +00:00
dyoung b894baa422 boot-load-size, the number of load sectors for the boot image, is
not yet, and will not be, supported.
2005-10-30 03:52:03 +00:00
dyoung 397d1928f2 Cosmetic: add temporary variables for lengthy, repeated clauses
like 'default_entry->entry_data.IE'.  KNF.
2005-10-30 03:50:54 +00:00
dyoung f112f0b6d9 Remove invisible whitespace at ends of lines that disrupted my
speedy cursor-movement habits in vi.
2005-10-30 03:10:28 +00:00
scw 1c2b41ea59 iwi(4) and iwictl(8) are no-longer restricted to the i386 platform. 2005-10-29 08:15:46 +00:00
scw 04ec36f7d6 Fix compilation for non-x86 platforms: s/int/size_t/ in struct firmware. 2005-10-29 08:14:27 +00:00
dyoung d4d99b79c1 The system type mac68k is also allowed.
XXX Is that correct?
2005-10-28 21:55:18 +00:00
dyoung c286f15e25 Correct strcmp(3) usage (expect equal -> 0). 2005-10-28 21:54:21 +00:00
dyoung 21326b0d23 Synchronize documentation with utility. 2005-10-28 21:52:36 +00:00
dyoung 33c7871577 Use LIST_ macros instead of accessing list structure members lh_first
and le_next directly.
2005-10-28 21:51:35 +00:00
jmc cc925ba123 Create version.texi using the same scheme am-utils natively does. i.e. from
the date/timestamp of the am-utils file and using mdate-sh
2005-10-27 19:03:58 +00:00
dyoung 689c61f61d Overhaul makefs -t cd9660.
Functional: Do not add a missing period or a version number to
            directories, since that doesn't fit the standard (thanks
            Daniel Watt).

            Add RRIP PX records (POSIX meta-information) to '.'
            and '..' entries.  Quiets kernel complaint, when we
            mount a cd9660 filesystem, that there is a missing PX
            entry.

Cosmetic: Reduce height of staircases.  Remove an unused member
          from struct _cd9660node.  Extract a subroutine.  KNF.

          Use a TAILQ macros for lists of both SUSP/RRIP attributes
          and directory entries.

XXX
XXX The new RRIP PX entries are not quite right.
XXX
2005-10-25 02:22:04 +00:00
christos f3c42fa4d4 Don't assume that fts(3) will add a slash to the name. From Steve Woodford.
KNF.
2005-10-24 13:17:22 +00:00
thorpej 327a57156c Use the real field name (d_fileno instead of d_ino). 2005-10-23 16:12:02 +00:00
christos 9f17a05ff3 PR/31502: John: rpc.statd doesn't save failed notifies in the database.
Tested by Martti Kuparinen.
2005-10-20 12:53:42 +00:00
wiz 445258bca4 New sentence, new line. Use more, and more appropriate, mdoc macros. 2005-10-18 11:01:39 +00:00
hubertf 457a6a5c65 mountd's -r option always was a dummy, don't advertize using it.
OK'd by fvdl.
2005-10-18 06:02:59 +00:00
wiz 6e001439cc Remove superfluous quotes. Sort option descriptions.
Add word for easier readability.
2005-10-12 09:19:34 +00:00
wiz 8535679520 Fix typos. Comment out Xr to non-existing make.conf(5). 2005-10-12 09:19:02 +00:00
wiz c5f11b986b > -> \*[Gt]. Make text more readable. Remove superfluous quotes. 2005-10-12 09:07:34 +00:00
rpaulo 79cf1201a9 Install HTML BIND 9 Documentation 2005-10-10 13:21:43 +00:00
dyoung d51694ecef Add single quotes to escape a semicolon in the makefs(8) argument
list.  Pointed out by Hubert Feyrer.
2005-10-10 05:41:28 +00:00
chs 6c50e54c82 avoid the need for a bogus initializer. 2005-10-08 03:21:17 +00:00
wiz 42a77e996d Punctuation nits; bump date for previous. 2005-10-06 10:43:45 +00:00
dyoung 92b3793d65 Add an example of using installboot(8) and makefs(8) with bootxx_cd9660
to create a bootable CD-ROM for an i386 host with a serial console.
2005-10-06 08:42:12 +00:00
christos c81227bb08 call pw_abort() on failure (from Liam Foy) 2005-10-05 21:17:53 +00:00
lukem 2484bb2972 Fix do_defaults() so that it errors when there's a mismatch.
Noted by Matthias Scheler.
2005-10-02 23:46:48 +00:00
christos 18b5fc9e5c Off by one in copying stuff to struct whoent. Found by Liam Foy. 2005-10-02 16:49:46 +00:00
christos 4ee0069616 wpa_supplicant is dual-licensed, so it can stay in /usr/src/dist. 2005-10-01 21:34:01 +00:00
christos ae7cb086a0 make this build again after the source move to gnu/dist. 2005-10-01 20:46:43 +00:00
christos c05266af8a fix setmode error handling. 2005-10-01 20:23:54 +00:00
scw c3f88c70e7 Descend into wpa. 2005-10-01 18:50:42 +00:00
scw d39dbceb8d Add wpa_cli and wpa_supplicant, based on Sam Leffler's work for FreeBSD.
NetBSD can now access a WPA-encrypted wireless LAN.
2005-10-01 18:50:12 +00:00
tron fe7c56c577 The list of keywords must be sorted because it is search with bsearch(3).
Correcting this makes mtree(8) work again under Solaris.
2005-09-29 14:29:03 +00:00
rpaulo 81e95d22ed Oops, typo. 2005-09-28 12:41:49 +00:00
rpaulo 700318b43a Disable TMPFS. It is about Solaris TMPFS, not ours and is not yet
implemented.
2005-09-28 11:15:06 +00:00
wiz 3224a4d9fd Remove default argument from .Nm. Add a missing article. Mention NetBSD import. 2005-09-27 09:16:20 +00:00
jmcneill 825ff1848a Import userland utility for playing with gpio devices. From OpenBSD. 2005-09-27 02:54:27 +00:00
elad a375b7cdb7 Use crypto/rmd160.h. 2005-09-24 22:40:32 +00:00
wiz 971a82acbe Use more, and more correct macros. Fix Xr section. 2005-09-23 20:58:50 +00:00
jmmv 2a3e5eeb7c Apply the NFS exports list rototill patch:
- Remove all NFS related stuff from file system specific code.
- Drop the vfs_checkexp hook and generalize it in the new nfs_check_export
  function, thus removing redundancy from all file systems.
- Move all NFS export-related stuff from kern/vfs_subr.c to the new
  file sys/nfs/nfs_export.c.  The former was becoming large and its code
  is always compiled, regardless of the build options.  Using the latter,
  the code is only compiled in when NFSSERVER is enabled.  While doing this,
  also make some functions in nfs_subs.c conditional to NFSSERVER.
- Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a
  path and a set of export entries.  At the moment it can only clear the
  exports list or append entries, one by one, but it is done in a way that
  allows setting the whole set of entries atomically in the future (see the
  comment in mountd_set_exports_list or in doc/TODO).
- Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so
  that it becomes file system agnostic.  In fact, all this whole thing was
  done to remove a 'XXX' block from this utility!
- Change the mount*, newfs and fsck* userland utilities to not deal with NFS
  exports initialization; done internally by the kernel when initializing
  the NFS support for each file system.
- Implement an interface for VFS (called VFS hooks) so that several kernel
  subsystems can run arbitrary code upon receipt of specific VFS events.
  At the moment, this only provides support for unmount and is used to
  destroy NFS exports lists from the file systems being unmounted, though it
  has room for extension.

Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments
and advice in the development of this patch.
2005-09-23 12:10:31 +00:00
rpaulo 87dab801e3 Updated autoconf generated files for am-utils 6.1.2.1. 2005-09-20 18:00:15 +00:00
wiz f38e8b27b1 Sync usage with man page. 2005-09-19 22:43:21 +00:00
wiz ff2f5aac09 Sort options. 2005-09-19 22:43:13 +00:00
explorer ece068eb66 It's been quite some time since tcpdump compile-time flags were
changed.  For one, "tcpdump -D" works with this set, as well as
"tcpdump -U" and at least one undocumented flag for pcap debugging.
2005-09-19 21:18:30 +00:00
christos 089e80014b Allow setting the reserved port we bind, witb -p. I've had this patch for
3 months stashed...
2005-09-19 00:59:56 +00:00
rpaulo ece51eabd5 PR 22469: user.c should use "pwd.h" include file for
_PATH_USERMGMT_CONF. By rpixley@vm-netbsd-161.nominum.com.
2005-09-19 00:43:17 +00:00
christos aa460c4e78 Allow amd to turn off the attribute cache. 2005-09-18 23:45:46 +00:00
agc c73a10fe94 Ensure that a consistent coding style is used.
s/1/EXIT_FAILURE/
2005-09-18 21:41:26 +00:00
christos 4471e7c6f5 From Liam Foy:
- Correct lenght for the username
- First character in the login name cannot be '-' (OpenBSD)
- Remove some #ifdef EXTENSIONS. find_group_info is always needed
- When printing change, if it's -1, place a correct string.
2005-09-18 14:15:53 +00:00
ginsbach 85dd62aa2a Add description for -r option. Description taken from traceroute man page. 2005-09-17 15:16:11 +00:00
wiz de0d2ef49e Fix -j description and "interface" case problem. From YOMURA Masanori in private mail.
While here, sort options.
2005-09-15 01:49:07 +00:00
drochner fb8d4ae653 cosmetics: strip trailing blanks when the ISO volume label is printed 2005-09-14 09:41:24 +00:00
lukem 922ca28a60 Add "named" item to move /etc/namedb/named.conf to /etc/named.conf.
Per discussion with Matthias Scheler.
2005-09-12 23:16:15 +00:00
wiz 6438e0bfa7 Sync usage with man page. 2005-09-12 18:34:37 +00:00
wiz 4b44cc9527 New sentence, new line.
Add -u to SYNOPSIS. Fix some typos.
Use more markup. Bump date for -u.
2005-09-12 18:33:56 +00:00
tsarna 04414a373b Add -u option: rwhod will drop privledges and become the given user.
reviewed by jwise
2005-09-12 16:13:13 +00:00
lukem d50a2d0385 Reorganize items so that they're in alphabetical order except that
"obsolete" is moved to the end.
Clean up some comments.
2005-09-12 15:48:29 +00:00
christos c9d876ed6c Warn if the group being removed is still the primary group of an existing
user. From Liam Foy.
2005-09-12 15:45:03 +00:00
lukem d4b0741135 not all items can be fixed automatically 2005-09-12 15:42:12 +00:00
wiz a464698404 Argument is regular_file, not "regular file". From YOMURA Masanori in private mail. 2005-09-11 23:49:58 +00:00
wiz edd2c20bae Comment out /usr/share/examples/usermgmt -- dir does not exist. Fix macro typo.
From YOMURA Masanori in private mail.
2005-09-11 23:49:20 +00:00
wiz 18b59e97b5 Fix -m description position. From YOMURA Masanori in private mail. 2005-09-11 23:46:39 +00:00
wiz b94cb50cae Fix argument name, and move Pp where it belongs. From YOMURA Masanori in private mail. 2005-09-11 23:45:04 +00:00
wiz 6da17cb070 Whitespace fixes. From YOMURA Masanori in private mail.
While here, fix one Op argument.
2005-09-11 23:43:27 +00:00
wiz d57174cb26 Remove useless lines. From YOMURA Masanori in private mail.
While here, remove outdated comment.
2005-09-11 23:38:35 +00:00
dyoung 3b0eb50995 Cosmetic: change to a standard idiom, *(x++) --> *x++. Flag some
places needing bounds-checking with XXX.  Fix indendation.
2005-09-11 22:03:48 +00:00
dyoung 62e9fd6510 By default, do not omit the trailing period from ISO9660 filenames
unless given the option '-o omit-trailing-period'.  Also, fix a
logic error so that makefs obeys option '-o omit-trailing-period'
when it is given.
2005-09-11 22:01:44 +00:00
rpaulo 0dc4f15121 Don't print swap information when reading from kernel dumps. Fixes PR
13418 by Andrew Doran <ad@netbsd.org>.
2005-09-11 16:09:51 +00:00
wiz 3595891ed9 Remove unnecessary keeps (Bk/Ek). Sort options. Various minor fixes.
Bump date.
2005-09-09 22:23:49 +00:00
wiz ba3a0dadf1 Sync group* usages with man pages. 2005-09-09 22:04:09 +00:00
wiz ac4e0a8127 Reformulate slightly to match other man pages. Use standard
EXIT STATUS section. Bump date.
2005-09-09 22:02:12 +00:00
wiz a2bc89c87d Do not list all options for group* -- they are bound to get out of sync here.
Use standard EXIT STATUS section. Bump date.
2005-09-09 22:01:20 +00:00
wiz f629e1e94e Sync user* usage with man pages. Bonus grammar fix in comment. 2005-09-09 21:48:10 +00:00
wiz 31e0e03316 Improve -p description in second case. 2005-09-09 21:43:42 +00:00
wiz d0260f31e6 Reformulate slightly to match other man pages. 2005-09-09 21:31:25 +00:00
wiz 32587324af Use standard EXIT STATUS section.
Reformulate slightly to match other man pages. Bump date.
2005-09-09 21:31:00 +00:00
wiz d48b71a0a8 Sort options and option descriptions. Use standard EXIT STATUS section.
Reformulate slightly to match other man pages. Bump date.
2005-09-09 21:30:31 +00:00
wiz a431cb6155 Reformulate slightly to match other man pages. 2005-09-09 21:29:08 +00:00
wiz 42fd4ae9cd Do not list all options for user* -- they are bound
to get out of sync (as they currently are, for example). Use standard EXIT STATUS
section. End sentences with dots. Bump date.
2005-09-09 21:26:09 +00:00
wiz e545853576 Sort option descriptions. 2005-09-09 20:48:16 +00:00
wiz 3a653a2ba9 Sort options and descriptions. Add standard EXIT STATUS section. Bump date. 2005-09-09 20:46:49 +00:00
rpaulo 8dd8736f37 trpt(8) no longer needs to be installed setgid kmem. 2005-09-06 03:05:15 +00:00
rpaulo 3bbe36c3d8 Update for the recent changes of trpt(8) and describe the sysctls.
Bump date.
2005-09-06 03:04:49 +00:00
rpaulo 7c18197a2e If reading values from a live system use sysctls net.tcp.inet.(debug|debx)
and kern.hardclock_ticks. Also, remove the set*gid() calls.
2005-09-06 03:04:15 +00:00
rpaulo a55d13d962 trsp(8) no longer needs to be sgid kmem. 2005-09-06 03:00:49 +00:00
rpaulo cbef7237e8 Update for the new changes of trsp(8) and describe the sysctls.
Bump date.
2005-09-06 03:00:30 +00:00
rpaulo 1f649eba90 If reading values from a live system, use sysctls net.ns.spp.(debug|debx). 2005-09-06 02:58:48 +00:00
rpaulo db74a52bff ANSI func. decl. and de-P(). 2005-09-05 23:17:08 +00:00
hubertf 105b456cb7 Mention pwhash(1) in a few places,
suggested in PR 31125 by Stefan Schumacher.
2005-09-05 03:37:14 +00:00
lukem 898fa7c553 Fix the installation of /etc/defaults/pf.boot.conf so that it works
with -s etc.tgz.
2005-09-04 10:13:15 +00:00
rpaulo 3f51653817 de-__P() and use ANSI function declarations. 2005-09-02 21:26:47 +00:00
elad d05d5cada8 Use MAXHASHLEN here too. 2005-09-02 17:12:38 +00:00
thorpej e1afed9c2d Experimental support for extended attributes on UFS1 file systems, using a
backing file per attribute type indexed by inode number to hold the extended
attributes.

This is working pretty well on my test systems, except for the "autostart"
feature.  I need someone with a better handle on the VFS locking protocol
to go over that.

This is a work-in-progress.  There are parts of this that could be re-factored
allowing this approach to be used on other types of file systems.

Adapted from FreeBSD.
2005-08-28 19:37:58 +00:00
elad aae00d5a54 Add SHA2 support in mtree. 2005-08-24 20:55:41 +00:00
elad d0b9773c8f Reference cksum(1) only. 2005-08-24 20:49:51 +00:00
kiyohara 188918d76f Fix marge miss. We use 'hw.fwmem.eui64_[hl]i'. 2005-08-23 19:19:51 +00:00
peter 9c1da17e90 pf needs to be started after the network is up, because some pf rules
derive IP address(es) from the interface (e.g "... from any to fxp0").
This however, creates window for possible attacks from the network.

Implement the solution proposed by YAMAMOTO Takashi:
Add /etc/defaults/pf.boot.conf and load it with the /etc/rc.d/pf_boot
script before starting the network. People who don't like the default
rules can override it with their own /etc/pf.boot.conf.
The default rules have been obtained from OpenBSD.

No objections on: tech-security
2005-08-23 12:12:56 +00:00
rpaulo 6443bd996e grfinfo(1) is hp300 specific, so move the man page to the hp300 subdir. 2005-08-20 17:21:29 +00:00
kent ed574610ee fix compilatio problems on LP64 2005-08-20 15:00:27 +00:00
christos c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
dyoung 54d7d8be9a Remove extraneous #PKG_DEVELOPER=1 line that snuck in with the last
commit.  (Thanks Masao Uebayashi.)
2005-08-19 01:26:59 +00:00
dyoung 2f96ceba5c Change from malloc/strcpy idiom to strdup.
Revamp err, errx, warn, warnx usage.

Misc. cosmetic tweaks.

Make -o bootimage=sysname;filename expect NetBSD architecture names
(x86 -> i386; mac -> {macppc, mac68k}; ppc -> powerpc) for sysname.
2005-08-19 01:24:21 +00:00
dyoung c3f075faf3 Cosmetic: alphabetize SRCS. Start a new line on each change of
leading letter.
2005-08-19 01:09:54 +00:00
heas be21025dae Set SIGCHLD to SIG_DFL in cron's child; instead of SIG_IGN, which alters the
behavior of wait() causing cron_pclose() to return bogus status and the logging
of bogus status in debug mode.
2005-08-17 22:35:20 +00:00
he 5d94f47ecb Move local variable declaration to start of block (also start of function).
Fixes build problem for vax.
2005-08-15 06:41:06 +00:00
fvdl 92be7f4643 Fix some wrapping lines. 2005-08-13 17:50:59 +00:00
fvdl 65b1705e76 Add nbtool_config.h include, fixing the tool compile on some platforms. 2005-08-13 17:46:07 +00:00
fvdl 36825d8853 Comment out some currently unimplemented options, and add a few descriptions
for others (from Daniel Watt).
2005-08-13 02:03:48 +00:00
fvdl 3550dc9861 cd9660 support. Written by Daniel Watt, Walter Deignan, Ryan Gabrys,
Alan Perez-Rathke and Ram Vedam.

Prototyping, KNF, WARNS=3 by me.

Note that this is marked experimental for now. It works well enough to
make NetBSD/i386 bootable images, but does need more work.
2005-08-13 01:53:01 +00:00
fvdl 046051d487 Fix a sign warning for WARNS=3. 2005-08-13 01:49:35 +00:00
he 1bb5735b5e Check the return value from mktime() and pass any error up.
*tp > LONG_MAX is never true, so replace that check with a test
for strtol() setting errno == ERANGE (oddly, some ports' build
swallowed this without warning).

There's no guarantee that a time_t stores the same number of bits
as a long, so check for an overflow there as well, and pass any
error up.

Discussed with christos, martin and mrg.
2005-08-12 21:40:35 +00:00
christos 91b1a8d112 patch from Liam Foy to add a -F option to force a user to change her's/his
password at the next login.
2005-08-12 16:22:05 +00:00
christos ef6897a3a6 Add "by default" (Liam Foy) 2005-08-09 23:27:31 +00:00
nakayama 25cffdf24e Embed machine and cpu architecture correctly by target host environmet,
not by build host.

Pointed out by Davide Zanon and Rui Paulo in current-users@.
2005-08-09 21:49:23 +00:00
christos c509b6a960 Fix reverse description of expiry/inactive. From Liam J. Foy. 2005-08-08 21:53:17 +00:00
blymn 132bb1fe89 Add tape statistics. 2005-08-07 12:32:38 +00:00
christos 102bb7e88c - eliminate a goto.
- cast more returns to void.
- use waitpid instead of wait() to wait for our process, not accidentally
  wait for other children.
- return exitstatus only if exited, and return the termination signal otherwise.
2005-07-31 17:52:01 +00:00
christos 78a36d519b The language lawyers claim that it is invalid to test a freed pointer, so
don't!
2005-07-30 15:06:43 +00:00
christos 32a16509f3 If the class was not specified, don't print a warning. 2005-07-30 14:35:23 +00:00
christos 42ec3173f1 Don't make it fatal if the login class doe not exist. From Jukka Salmi. 2005-07-29 18:16:21 +00:00
wiz 54fa7b8a6b Various improvements. 2005-07-28 20:23:31 +00:00
peter cea4f4ef79 Minor tweaks to the usage message:
- better layout for useradd.
- fix a small mistake in -u and wrap long line.
2005-07-27 23:32:02 +00:00
christos 9f01a2d031 Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD
2005-07-27 19:09:21 +00:00
christos 24e9d708ff Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD

While I am there:

- KNF (long wrapped lines, and spaces after void casts).
- Factor out some common code.
- Fix error messages.
	1. Consistently capitalize them.
	2. Fix err->errx and warn->warnx inappropriate uses.
	3. Use regerror where appropriate.
	4. Don't call warn()/err() to report errors after you trashed errno
	   by calling other syscalls. Save and restore the errno instead,
	   or in the warn() case, call warn() first.
- Fix size_t - int, uid_t - int confusion.
- Pass lint
2005-07-27 19:08:42 +00:00
drochner b974cae7e2 Allow the test for ISO9660 filesystems to be applied to non-CD devices
and plain file images too. If no TOC can be read, a single track is
assumed which spans the whole thing.
The disklabel will be updated if supported by the device. If not, just
the ISO volume label information will be printed.
2005-07-25 11:26:40 +00:00
peter dbbbd78e77 Restore a part that was lost in rev. 1.44.
This should stop sushi from dumping core.
2005-07-21 21:48:47 +00:00
agc c426bea6d7 Commit changes from Liam J. Foy:
- system(), rmdir() sets errno, use it
- Use warnx() if strchr failed, not warn()
- Constify some arguments
- Fix cases when errx()/warnx() should be used instead of err()/warn()
  due to errno not being set.

Group code:
------------
- List members in a neat fashion, separated by commas
- groupmod(): Use find_group_info - consistency
2005-07-20 21:42:58 +00:00
wiz 60027a5523 Grammar fixes. 2005-07-18 14:07:18 +00:00
wiz c5541497ba Drop trailing whitespace. 2005-07-18 14:06:05 +00:00
hubertf b7cc645889 Bump version to 20050718 for fixed IGNORE_RECOMMENDS handling. 2005-07-18 09:09:35 +00:00
hubertf aba8b403bc Fix PR pkg/30658: don't fail for pkgs that were built with IGNORE_RECOMMENDED,
just issue a warning.

Checked by wiz@, no reply from original author (rh@) after several weeks. :(
2005-07-18 09:06:48 +00:00
he 2243c46578 After christos relaxed the tty handling code, we no longer need to
set a tty as a controlling tty in order to use F_SETOWN on it, so
comment out USE_FSETOWNCTTY.
2005-07-17 12:46:51 +00:00
hubertf 673730506c Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
2005-07-17 00:08:27 +00:00
hannken 5b2600ba63 Add option `ioaddr=<ioaddr>' to amd64. Already noted in man page.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2005-07-16 10:43:00 +00:00
rtr c398bfd249 avoid ifconfig <if> "" it serves no purpose
patch from Robert Elz via pr#21110
2005-07-16 08:41:27 +00:00
wiz e8034ce6cf Sync usage with man page. Use getprogname(). 2005-07-12 09:10:18 +00:00
wiz 827b575644 -i seems to have been renamed to -b, update description. 2005-07-12 09:05:35 +00:00
wiz e6d8065557 Sort a bit more. 2005-07-12 09:03:10 +00:00
wiz 77d802d694 Sort options, sort sections, long month name in Dd. 2005-07-12 08:59:00 +00:00
wiz eaa6bf85ad Sync usage with man page. 2005-07-12 08:48:20 +00:00
wiz 172e129d75 Sort options. New sentence, new line. 2005-07-12 08:45:03 +00:00
kiyohara d7ee32c61f Forgot to commit.
ieee1394 import from FreeBSD.
2005-07-12 03:23:06 +00:00
kiyohara c1a84a4d12 ieee1394 import from FreeBSD. 2005-07-11 15:29:05 +00:00
lukem 1527bc4c2a Fix a typo in the description of -f. Noted by Jukka Salmi in PR 30713.
Add some missing punctuation.
2005-07-11 00:25:08 +00:00
christos 1a8fb0ada9 Add a -s flag to switch between terminals.
Misc KNF.
2005-07-10 17:57:28 +00:00
isaki 723dc0caf2 Use errx() rather than err() where appropriate. 2005-07-10 07:12:13 +00:00
mrg d6989eccf4 apply the patch from PR#30680: always print the header in extended
(-x) mode, as it is much easier to see what is going on.
2005-07-07 22:31:45 +00:00
christos cb1d68978b Patch from Liam J. Foy:
- cleanup sendto code.
- fix usage.
2005-07-05 02:46:36 +00:00
peter e0de99f875 Remove trailing space, fix a Xref. 2005-07-01 16:18:46 +00:00
christos 6b7013d1ad Change g flag to i as in the PR.
Don't allow interval to be set to > 11 minutes.
Rephrase option blurb.
2005-07-01 15:31:18 +00:00
christos c36c99ef66 PR/30648: Liam J. Foy: rwhod patch to reduce time interval between broadcasts 2005-07-01 13:07:21 +00:00
tron 7663ad07fa Remove outdated BIND 8 version of named.conf(5). The build now picks up
the correct version from "src/dist/bind/bin/named".
2005-07-01 12:10:43 +00:00
hubertf 390553bef2 cleanup: preserve errno. Needed so err() functions ran after running
cleanup(0) print the correct error message.
2005-06-29 01:40:42 +00:00
hubertf 9a9bdaa985 Fix 'pkg_add -R' handling - not registering really means not touching
the pkgdb too - useful for pkg_add as non-root!
2005-06-29 01:39:37 +00:00
peter df0caa2637 Remove (pf)spamd. Its right to exist in NetBSD has been questioned since it
appeared and whether it's really part of pf or not is still unclear. Looking
at the other *BSDs it seems that they have left out spamd when importing pf,
and now we do that too. Also, the name conflicted with another more popular
used tool, after the rename to pfspamd it was left with completely unusable
documentation which apparently no-one wanted to fix.

A port of the latest spamd will be imported into pkgsrc soon.

Suggested by several people, no objections on last proposal on tech-userlevel.
2005-06-27 20:32:39 +00:00
junyoung 632e7ed58f Remove a unnecessary semicolon and trailing spaces. 2005-06-27 12:07:46 +00:00
christos c40b82ea42 constify. 2005-06-27 03:10:32 +00:00
wiz 9dda894764 Dd wants long name of the month, not the three-letter one. 2005-06-26 13:12:07 +00:00
peter c14c7a6bb6 - Use the timer* macros from sys/time.h, no need to invent a new time add
function if it already exists.
- Improve a few function/variable names and use EXIT_FAILURE.
2005-06-24 13:47:30 +00:00
christos a8b658e375 Initialize events not revents. Noted by Peter Postma. The timer changes he
can make himself :-)
2005-06-24 13:24:23 +00:00
christos f17eeccada Fixes from Liam J. Foy to use poll, and proper signals. (from OpenBSD)
While there, ansify, and fix const abuse.
2005-06-24 13:22:09 +00:00
fvdl b14624e508 Pull in DIP_ADD from sys/ufs/ufs/inode.h and use it, to prevent bad lvalue
assignment warnings/errors from gcc4.
2005-06-23 00:53:16 +00:00
dyoung 9063402978 Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
peter a9b411c198 Change all .Xr config 8 to .Xr config 1, following the recent move of
config from usr.sbin -> usr.bin.

Reviewed by wiz.
2005-06-20 13:25:23 +00:00
salo bb837eff67 Monitor mode requires firmware version 1.0.4 or newer. Bump date.
ok <sekiya>
2005-06-20 09:49:27 +00:00
sekiya 3b3daf0a90 Add "monitor" to list of valid modes. No functional change. 2005-06-20 09:06:40 +00:00
lukem aa159e4a50 ypdb_open():
* Clarify what it does (adds YPDB_SUFFIX if it's missing).
* Add some explicit pathname length checks and display a warning if exceeded.
2005-06-20 00:29:42 +00:00
lukem cdd4868c29 tweak filename length check 2005-06-20 00:08:35 +00:00
lukem a0b1a25618 snprintf NUL terminates, so there is no need to explicitly do it afterwards 2005-06-19 23:43:51 +00:00
blymn 21cbe2316b Fix up the adding of static routes, incorrect parameters were being passed
to the route command.
2005-06-19 05:04:34 +00:00
lukem 365a6c8313 Convert from tmpnam()/open() -> snprintf()/mkstemp(); the latter
avoids a linker warning about the use of tmpnam().
2005-06-18 11:07:26 +00:00
wiz 95c82c980c Non-argument options in SYNOPSIS belong before options with arguments.
New sentence, new line.
2005-06-17 18:22:18 +00:00
peter 97c5e2ee72 - Document the -i flag (PR/26684)
- Add arguments to the relevant flags.
2005-06-17 17:49:07 +00:00
peter f1843b15c3 - add -D to usage
- use getprogname()
- sort options (usage, synopsis and description)
- add `Ar conf_file' to -f option (description)

From Kouichirou Hiratsuka in PR/26532.
2005-06-17 12:02:00 +00:00
agc 6fdfc9ef36 Be consistent when deleting a non-existent group - tell if the group is
non-existent.

Problem noted by Geert Hendrickx, fix from Liam J. Foy.
2005-06-14 18:29:58 +00:00
peter 960f4edd01 The default hops is not 30, but is taken from the net.inet.ip.ttl sysctl
variable.  Fixes PR/30209 from Jed Davis.
2005-06-14 13:55:59 +00:00
dyoung 00218a63cc Oops, straggler: #include <nbinclude/sys/disklabel.h> if we're
building a host-tool.

XXX In hp300_setboot, quiet -Wunitialized: initialize secsize to
XXX HP300_SECTSIZE.  Is this correct?
2005-06-12 21:38:12 +00:00
dyoung dba4661556 Build hp300 support into installboot(8). 2005-06-12 20:25:26 +00:00
dyoung a039894d70 For portability, use 'unsigned int' instead of 'uint'. 2005-06-12 20:21:20 +00:00
he 46892c9e37 Initialize class and node in modify_single(), as their initial assignment
appears to depend on the passed function parameters.
2005-06-11 18:42:56 +00:00
lukem b3a34b7256 Support MKINET6=no building after the -Wuninitalized fix.
Noted by Jukka Salmi in email.
2005-06-07 22:21:57 +00:00
he 07950b9fb6 Add initialization of a local variable to appease -Wuninitialized.
Marked with XXXGCC for hpcarm (found while compiling for it).
It appears that the reason is that gcc for this target is not able
to determine unchanging complementary conditionals and sort out the
corresponding assignment / use.
2005-06-07 14:01:49 +00:00
he e670882cec Initialize a local variable in ufs_getlbns() to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:54:55 +00:00
he 0590642883 Initialize a local variable (bbinfop) to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:49:31 +00:00
he 63104d4c13 Initialize s, name and name_end in load_env() to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:43:52 +00:00