Commit Graph

7362 Commits

Author SHA1 Message Date
ben ab821d396a Correct PAX_CMD to be pax. 2005-11-28 01:49:39 +00:00
bouyer 3cce18ce83 We can't call db->put() with key or data pointing back to db(3)'s memory
space, or the database will be corrupted (noticed when the database is
updated in reset_host()). Change change_host() to copy hostname and HostInfo
to local storage before calling db->put().
Change notify_one() to use change_host() instead of calling db->put()
directly.
2005-11-27 16:03:20 +00:00
jdolecek a53e9b6a94 the mktemp() use here is not OK, adjust comment 2005-11-27 12:52:30 +00:00
christos 65710e59db adjust to the new openssl 2005-11-26 02:32:32 +00:00
agc 40a712f2d4 Be pragmatic - move user(8) to a 3-clause BSD licence. 2005-11-25 08:00:18 +00:00
macallan 631f2d878c build the apm utility on sparc since we already build apmd 2005-11-24 15:47:09 +00:00
ben 81789679db Conditionally include header files, and include nbcompat.h
Addresses PR#32149
2005-11-23 14:58:16 +00:00
tron 173505f438 Remove unused variable "argc" in function apply_perms(). 2005-11-23 12:01:30 +00:00
ben ed4b2f6172 Reduce the use of the system() function in pkg_install to avoid quoting
problems.  Instead, use exec*() functions.

Replace PUSHOUT() macro and string buffers with a function that
operates on data structures.

If it is necessary to copy files into place from staging area, then use
pax to copy them.

Add functions in pexec.c to create a pipe for sending data to a child
process.  Replace pipe code in create/perform.c with these functions.
Use these functions instead of command-line arguments when copying files
into place from staging area.

Three system() references remain: @exec, @unexec, and vsystem().
2005-11-23 04:59:14 +00:00
lukem 547b2d58b6 Add checks for _rwhod group & user.
Noted by Patrick Welche on current-users.
2005-11-22 22:10:52 +00:00
dyoung f8251d6325 Bug fix: when we ask the kernel to count the ieee80211_nodes, let
it count as many as INT_MAX of them, instead of just 1.

New feature: display node-table membership, 'sta' or 'scan'.
2005-11-20 09:41:39 +00:00
christos 97babf6224 add the dnssec and namedb check tools 2005-11-19 02:09:27 +00:00
yamt 6458fcab9f make -noresvmnt in DEFSET work. 2005-11-18 13:19:48 +00:00
christos 27fe712f67 The latest fts fix that removes double-slashes from paths exposed a bug
in the code. Don't assume that the extra slash is going to be there.
2005-11-18 05:11:30 +00:00
rpaulo b3bf341016 If ENABLE_WPA_SUPPLICANT_EAPOL is defined, add libdes to ${DPADD} and
${LDADD} so that it builds fine.
While there, add libssl to ${DPADD}.
2005-11-17 13:55:29 +00:00
wiz b141897d50 Punctuation fixes. 2005-11-16 20:24:17 +00:00
christos 77bea244d5 user portion of the EXTENSIONS documentation. From Liam Foy. 2005-11-16 18:44:37 +00:00
dillo f05d706e05 Bump version for ``pkg_info -Q against local binary packages'' fix. 2005-11-14 09:41:43 +00:00
dillo b6b652227e Fix first part of PR 32068: pkg_info -Q broken for local binary packages
Add BUILD_INFO_FNAME to the files to extract for SHOW_BI_VAR.
2005-11-14 09:39:44 +00:00
lukem 8dfe8b4d24 Update copyright years.
Whitespace tweaks.
2005-11-14 00:04:34 +00:00
agc 2ca444e0bd Get rid of cvs merge botch in previous. 2005-11-13 20:37:23 +00:00
agc d6e9c48326 The Dewey number comparison routines were added by myself in 2002 in
revision 1.32 of pkg_install/lib/str.c, and have absolutely nothing to
do with the original FreeBSD utilities.

Place the appropriate (3 clause) copyright on this file.
2005-11-13 20:07:41 +00:00
wiz 41fb8f4fed Handle -1 return value from dewey_match. 2005-11-13 19:48:35 +00:00
wiz 45be6e647e Do not use errx in dewey_match, return -1 instead. 2005-11-13 19:48:19 +00:00
wiz 43f9ef503c It is not 2006 yet. Fix typo. Uppercase BIOS. 2005-11-12 16:44:07 +00:00
dsl e0e1f6caed Don't try to determine the type of the target filesystem unless a second
stage bootstrap is specified.  It is only needed when we need to copy the
sector numbers of the second stage into the first stage.
Document that a configured baud rate of zero will cause the baud rate set by
the bios to be used.
2005-11-12 09:35:31 +00:00
wiz f72297cc7e Sync usage with man page (sort options). 2005-11-11 21:24:01 +00:00
wiz d1115a4c84 Keeps in SYNOPSIS are not necessary any longer, groff is smart enough nowadays.
Sort options and option descriptions.
2005-11-11 21:22:18 +00:00
dsl 8c893c964a Add a -e (edit) option to allow the bootstrap options of an installed
bootstrap or a file containing such a bootstrap to be changed/displayed.
In particular this will (soon) let you modify the parameters for pxeboot.
2005-11-11 21:09:50 +00:00
peter a54786194c Use the LIST_FOREACH macros. 2005-11-11 15:14:24 +00:00
peter 19f81314eb Don't core dump when the program is invoked without arguments. 2005-11-11 15:08:40 +00:00
wiz 718287b4f9 Whitespace nits, improve wording. 2005-11-10 21:17:18 +00:00
elad 7084f7a24b SHA2 support has been pulled up to NetBSD 3.0, update the history part. 2005-11-10 19:41:59 +00:00
christos efa8bba1ef factor out common code. 2005-11-10 19:11:48 +00:00
christos 98817ca408 cgd wanted to have it read stdin. 2005-11-10 19:07:03 +00:00
christos 1d5c23627f change warnx to warn. 2005-11-10 18:04:03 +00:00
christos 2ac1e392b6 Use unvis(3) to parse the string. thanks to groo, soda, and numerous others
for the hand-holding.
2005-11-10 18:03:05 +00:00
christos 258783da29 Add new sti command. 2005-11-10 16:54:05 +00:00
wiz c6257ebac1 Mark up EXTENSIONS. 2005-11-09 23:50:16 +00:00
wiz 36470a753d Drop trailing whitespace. 2005-11-09 23:48:51 +00:00
wiz 227106a6a2 No leading zero in date strings.
XXX: this page needs conversion to mdoc.
2005-11-09 23:43:59 +00:00
wiz 7ef0b27ab9 Remove some unnecessary header includes. 2005-11-08 20:16:53 +00:00
dillo e68029a308 Bump version for pkg_info -B fix. 2005-11-07 23:20:49 +00:00
dillo 831ae4eb35 Don't add INSTALLED_INFO to the list of files to extract from binary
packages, it will never be there.

Fixes pkg_info -B against binary packages broken when INSTALLED_INFO
support was added.
2005-11-07 23:19:55 +00:00
christos df29ab0769 Mention which options are only available with EXTENSIONS. From Liam Foy. 2005-11-07 23:07:45 +00:00
wiz 752535d165 Replace wait(2) with equivalent waitpid(2); for Linux, reported by wulf@
on tech-pkg.
2005-11-07 22:57:07 +00:00
wiz 2fa51c716a Sync with pkgsrc: wrap some headers in #ifs. 2005-11-07 22:53:41 +00:00
christos 6b3d6b9d93 remove asprintf and strlcpy. We don't support NetBSD1.3 and NetBSD1.4.
GC Todd's copyright, since it is not needed anymore.
2005-11-07 21:58:12 +00:00
christos 9b674959c3 More cleanups from Liam Foy:
- Fix error messages, some are completely incorrect
    - Asystem prints the error message so don't bother saving errno
    - Don't continue if a lock can't be obtained on /etc/group
    - Just pass struct passwd * to removehomedir, not its members
Some copyright maintenance:
    - Add Liam Foy.
    - Move Todd's copyright higher up.
    XXX: We should remove clause 3 and merge the two copyright groups.
2005-11-07 21:46:50 +00:00
uwe 7541580e69 \(<= is the proper roff for <=. Fix another \*[Le] missed in the
previous commit.  While here, properly mark up minus in -p description.
2005-11-06 17:39:45 +00:00
rpaulo 033766f3a8 It's lilac-dmc.Berkeley.EDU, not lbl-csam.arpa. A 12 years old typo!
Also, \*[Le] doesn't seem to work well here, so replace it with '<='
as FreeBSD did. This problem was spotted by joerg@.
2005-11-06 16:40:55 +00:00
wiz a1e41eed09 Use config.h and add appropriate #if HAVE_FOO_H. 2005-11-06 12:40:02 +00:00
wiz f0f9d6a437 Add compat #ifdefs from pkgsrc, to make syncing easier between the
two versions.
2005-11-05 13:11:02 +00:00
hannken ba2ee12485 Make it compile on sparc/sparc64. Cast size_t to int for field precision. 2005-11-04 09:26:05 +00:00
dillo 8af62fd627 Split dewey compare functions into their own file dewey.c so they
can be used in a forthcoming Perl module.

Joint work with Thomas Klausner.
2005-11-03 21:59:55 +00:00
dillo 75b9797969 Implement framework to store variable=value pairs about an installed package.
Use this in pkg_add to mark installed dependencies as automatically installed.

pkg_add: new flag -A: marks package as automatically installed.
pkg_admin: new commands set and unset to modify variable pairs for
	   installed packages.
pkg_info: report these variable pairs with -Q/-B.
	  new flag -u: report only manually installed packages (not
	  installed with pkg_add -A).
	  Error out if -a/-u and a package name is specified.

Joint work with Thomas Klausner.

As discussed on tech-pkg.
2005-11-03 21:16:41 +00:00
bouyer 58ce78eeda When forking, we keep a reference to the status db file, and if the
memory copy of the file is dirty, is will be synced when the child exists.
But the parent may have done changes to the database in the meantime, resulting
in a db corruption.
Fix this by calling sync_file() just before the fork. The child will still have
a reference to the db, but won't try to write it on exit.
2005-11-03 19:36:42 +00:00
chs 04084538be use correct types, allow size to be larger than 1 TB. 2005-11-01 01:42:29 +00:00
dyoung fec0b664fc Oops, condition another printf on verbose_level > 0. 2005-10-31 23:21:25 +00:00
dyoung 96801f79bb Condition several cd9660 printfs on verbose_level > 0. Silences
makefs -t cd9660.
2005-10-31 23:19:54 +00:00
dyoung 933a7c2901 Change cd9660's default verbosity level to 0, quieting it down
considerably.
2005-10-31 23:19:06 +00:00
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