Commit Graph

8055 Commits

Author SHA1 Message Date
elad
a8c0f0c72e Move paxctl from usr.bin/paxctl to usr.sbin/paxctl, and make it an admin
tool (man-page moved from section 1 to section 8).
2007-01-30 19:40:07 +00:00
dogcow
8e180a72c2 emasculate debugging mode for the hosttool version of makefs, to avoid various
hairy endian-decoding macros/inlined functions/etc.
2007-01-30 01:46:33 +00:00
christos
a8accd0f06 mips1 does not have the right assembly instructions. 2007-01-30 00:49:15 +00:00
christos
db3454e373 powerpc assembly does not work. 2007-01-30 00:48:27 +00:00
christos
f8ee9d613d deal with x86_64 build failure. 2007-01-29 17:33:30 +00:00
hubertf
0cc1170149 Xref drvctl(8), bump date 2007-01-29 00:48:34 +00:00
cbiere
4ce24268ac Added user and group "_timedc" for timedc. 2007-01-28 16:39:29 +00:00
cbiere
28ea2557d4 Let timedc use the dedicated account "_timedc" for dropping privileges
instead of abusing the account "nobody".
2007-01-28 13:51:29 +00:00
dogcow
f36028509f revert this change, too. 2007-01-28 10:40:19 +00:00
dogcow
f7c54e5b52 Due to recent changes in the cd9660 code, crosscompilation of tools/makefs
now fails due to the use of [be]e{16,32}dec. Add a compat header, and force
the inclusion of <sys/endian.h>.
2007-01-28 09:19:33 +00:00
christos
16317a9d71 Changes for bind-9.4.0-rc2 2007-01-27 21:36:13 +00:00
cbiere
0f2ebef2a8 * timedc is no longer setuid-root and is only usable by root due to the
use of a raw socket for ICMP; thus there is also no need to differ
   between privileged and unprivileged commands.
 * Switch to user "nobody" after allocating the raw socket.
 * Close all file descriptors above 2 (just in case).
2007-01-27 17:57:45 +00:00
cbiere
0a2098a6e9 bind() in priv_resources() is now unnecessary as pointed out by christos. 2007-01-27 00:37:56 +00:00
cbiere
2ca958bb2f * Fixed a 64-bit issue in daydiff().
* Check the packet size and sender address in daydiff().
 * priv_resources(): Use bind() instead of bindresvport() because an
   reserved port is not required. This also resolves the interoperability
   issue reported in PR bin/35479.
2007-01-27 00:15:50 +00:00
christos
07807b36a7 - centralize sendto tsp
- cleanup some casts
2007-01-26 16:12:41 +00:00
mouse
fa0144b381 Add srtconfig. It builds OK, at least in my tests, so it shouldn't
break anything having it there, and it's pretty much necessary for
anyone who wants to actually use srt.
2007-01-26 07:01:03 +00:00
christos
b841c08d29 WARNS=4 2007-01-25 23:51:28 +00:00
christos
7bc0bdf604 - merge the update code in one function
- support wtmpx
- kill local decls of logwtmp; use util.h
2007-01-25 23:51:11 +00:00
christos
b772b1e89b sprinkle const. 2007-01-25 23:47:13 +00:00
cbiere
07c9d403fe * Modified in_cksum() so it can handle unaligned data.
* Replaced most strlcpy() with set_tsp_name() and get_tsp_name() because
   strlcpy() could potentially run out-of-bounds and doesn't zero out
   unused buffer space.
 * Replaced bcopy/bzero() with memcpy/memset().
 * Fixed potential alignment/aliasing issues in measure().
 * Replace u_short/u_long with uint16_t/uint32_t/in_addr_t where appropriate.
 * Renamed sin to addr because sin is a reserved identifier.
 * Use bindresvport() instead of looping over bind(); rresvport() returns
   a SOCK_STREAM socket not SOCK_DGRAM.
2007-01-25 23:25:20 +00:00
christos
06fe4f2600 - use rresvport() instead of open-coding it.
- use warn/err.
2007-01-25 22:28:03 +00:00
plunky
4c6d0d2a6f use "%m" instead of "%s", strerror(errno) for syslog(3) 2007-01-25 20:33:41 +00:00
christos
2331183c52 PR/35479: djv AT bedford DOT net: fix byte order issue and zero the sockaddr. 2007-01-25 15:29:40 +00:00
ad
75922662e1 Correctly seperate different events for the same type of lock. 2007-01-20 20:01:03 +00:00
kardel
54a07e0f01 PR/25482
reinstate NTP html pages (sans gif's/img tags).
The important man pages are now generated by autogen and
thus match again the code again.
2007-01-20 16:50:29 +00:00
pooka
984c93b472 more ketchup 2007-01-20 14:37:48 +00:00
pooka
9fcf633272 play catchup with the lib 2007-01-20 13:52:35 +00:00
perry
981d0d04cb Fix a typo in a boolean test, which used & instead of &&. 2007-01-20 01:13:13 +00:00
hubertf
889da1779b * Don't include headers twice
* Remove a few trailing whitespaces
 * Rearrange and join to one #if for some headers

Patch contributed by Slava Semushin <slava.semushin@gmail.com>
in private mail.
2007-01-16 17:32:04 +00:00
hubertf
e3b9ec947a #including <syslog.h> once is enough
From Slava Semushin <slava.semushin@gmail.com> in private mail
2007-01-16 12:08:23 +00:00
hubertf
a383094e4a Remove duplicate #include <errno.h>
From Slava Semushin <slava.semushin@gmail.com> in private mail
2007-01-16 12:07:08 +00:00
pooka
5d293715c8 * adapt to libpuffs path changes
* fix bug in rename
2007-01-15 00:42:21 +00:00
wiz
d23d0c4a93 New sentence, new line.
Sort sections.
Fix a typo.
Comment out xref to acpiconf(8), which we don't have.
Use HTML macros.
2007-01-14 12:30:24 +00:00
wiz
266bca7bda Sort sections, sort SEE ALSO. Use Rs/Re for citation.
Remove URL that points to a 404. Use HTML macros.
Comment out xrefs to mem(4) and acpiconf(8) since we do not have them.
2007-01-14 12:25:42 +00:00
dogcow
7ac7d15dd5 Now compiles on amd64, mostly due to %llx -> %PRIx64, but also changing some
internal structures around. (yay for assuming that pointers can be held in
an int. bah.)

Not sure if it actually _works_ on amd64, but as the output on my i386
doesn't change pre/post-patching, that seems good enough for now.
2007-01-14 05:33:18 +00:00
christos
02dcb4ad58 only build on i386 and amd64. 2007-01-14 04:44:11 +00:00
christos
10866ba3f7 add acpitools 2007-01-14 04:39:34 +00:00
christos
53e202c131 Add acpitools 2007-01-14 04:36:13 +00:00
kardel
85272e875d use emalloc.c from the distribution for ntpd - default efuns don't make sense in daemons
reverts effect of usr.sbin/ntp/libntp/Makefile:1.9 for ntpd - restoring syslog functionality

discussed with christos@
2007-01-13 19:27:50 +00:00
pooka
c921b47454 don't detach if -s or -o dump is given on the command line 2007-01-11 18:52:26 +00:00
pooka
0ac919744e Give nukenode a destroy flag. If given, it completely wipes out
the node and directory cache (for directories).  Otherwise it just
nukes directory entry information.  The latter case is used when
renaming.
2007-01-11 18:50:42 +00:00
martti
1ec5653502 Clean ${SRCDIR}/etc when done. Patch provided by rudolf.
http://mail-index.netbsd.org/tech-toolchain/2007/01/11/0001.html
2007-01-11 07:31:47 +00:00
pooka
9da6af0a36 Invalidate kernel name cache for a directory when (re-)reading
directory contents from the server.
2007-01-09 18:23:21 +00:00
mjf
bf77574aa2 Delete advertising clause. 2007-01-09 13:53:31 +00:00
pooka
6ee2e9c031 Mark invalid attributes as invalid. Fixes stuff such a cp'ing files
when cp uses mmap().  Also makes attributes appear correct.
2007-01-09 12:34:20 +00:00
wiz
85181e787c New sentence, new line. Sort SEE ALSO. Punctuation nit. 2007-01-08 07:26:40 +00:00
wiz
c598f926c7 Drop trailing space. 2007-01-08 07:15:06 +00:00
pooka
94f62e9b01 properly carry fileid for directory entries, fixes pwd 2007-01-07 21:59:27 +00:00
pooka
d66d221ae1 man page for mount_psshfs 2007-01-07 19:56:26 +00:00
pooka
5c80f85b24 use UBC by default 2007-01-07 19:33:23 +00:00
pooka
7f864d6007 * Adapt to openssh standard of timestamps in file attributes. Maybe
should make this work with the IETF standard some day, also.
* kludge with writes and permissions a bit to be able to flush data
  cached in ubc to files which are already with r/o permissions in
  the backend
2007-01-07 19:31:48 +00:00
pooka
c53a62f5e3 fix link count calculation for directories 2007-01-07 19:29:55 +00:00
dogcow
bee2705c99 %d -> %ld, so that building on alpha doesn't fail. (also print more useful
errors - x bytes written, should be y.)
2007-01-07 04:16:57 +00:00
daniel
83aa19e1b0 Correctly retrieve information from an ext2fs inode's dinode. Fixes
PR 21302.

Ack by christos.
2007-01-06 23:06:18 +00:00
dsl
2e4f7d3057 Document bootxx_fat16 with a short description of why it differs from
bootxx_msdos.
2007-01-06 20:51:54 +00:00
kardel
dbbbd5d806 import NTP 4.2.4 2007-01-06 19:45:21 +00:00
pooka
a67e4ce37f * do mount as a forward operation instead of a callback
* process -o args for mount
2007-01-06 18:25:19 +00:00
dsl
eacd963375 Support for non-512 byte media.
Automatically enable writes to the 'labelsector' if necessary.
Detect and recover from problems with the write-protected 'labelsector'
  stopping writes to nearby sectors when the non-raw disk device is used.
Support the installation of 512-byte pbr boot code (eg fatboot).
Verify that there is enough reserved space in the bpb (if not all zeros) to
avoid overwriting the start of FAT filesystems.
2007-01-06 10:21:24 +00:00
rillig
7eb2c18b51 Fixed gcc warnings about comparison between signed and unsigned, as well
as one case where a variable had been used for two different purposes
(which also required different types).
2007-01-02 16:00:46 +00:00
pooka
d584a8d23a SUSv3 says: should the implementation not support directory unlinking,
unlink shall fail with EPERM and the errno of the failure shall be EPERM
2007-01-01 21:32:12 +00:00
pooka
75a62546e6 Makefile.inc to get BINDIR right 2006-12-29 17:42:52 +00:00
pooka
81b905fdbb if MKPUFFS=yes is given, build & install mount_psshfs (default: no) 2006-12-29 15:52:20 +00:00
pooka
c3ef8ea5d0 puffs sshfs, an sshfs implementation built on top of the puffs
continuation framework
2006-12-29 15:35:39 +00:00
wiz
0b5301abc7 Add RCS Id. 2006-12-29 10:39:59 +00:00
wiz
6ecddff523 Add RCS Id. Os needs no argument. Remove unnecessary .br
in SYNOPSIS. New sentence, new line. Use An for author name. Use standard headers.
2006-12-29 10:39:11 +00:00
mouse
ebc746c114 Very first import of the source-address-based routing pseudo-device,
before any cleanup at all, per discussion with perry@.
2006-12-29 04:20:14 +00:00
xtraeme
d9e9fef5b7 More NQNFS fallout (hi yamt!). 2006-12-28 04:17:51 +00:00
wiz
3ed1aa9185 Spell "separate" correctly. From Zafer Aydogan. 2006-12-25 18:39:47 +00:00
ad
9f07c24ec6 lockstat: improve reporting slightly, and fix a bug where the command
could spin while resorting lists.
2006-12-25 11:57:40 +00:00
wiz
5c1e8d4638 Reword OF3 restrictions, ok tsutsui@.
Bump date.
2006-12-23 19:50:20 +00:00
wiz
b5bca6912d Bump date for previous. Remove trailing whitespace. 2006-12-23 09:48:47 +00:00
wiz
b2801fe843 Sync usage with man page. 2006-12-23 09:16:38 +00:00
wiz
3cdde55f8e Use more markup, remove superfluous Ns calls. 2006-12-23 08:25:44 +00:00
wiz
ace0a0e43c New sentence, new line. Improve English. 2006-12-23 07:47:15 +00:00
christos
c20e20ce2a From Anon Ymous:
- add __unused
- fix volatile
2006-12-20 16:33:34 +00:00
agc
fa94897003 + some minor cosmetic changes
+ rather than using global variables, accessed all over the place, create
a local structure, and pass it down.

+ add a -p argument to denote a prefix, so that it's possible to record
a different directory hierarchy from the one that was scanned.  One
typical use would be:

	# ./veriexecgen -v -d /usr/dest/i386 -a -p /usr/dest/i386 -r -o fingers

to create a fingerprint database called fingers from the files located
in the /usr/dest/i386 hierarchy, but without the leading /usr/dest/i386
prefix:

	# Generated by agc, Tue Dec 19 13:10:34 2006
	/bin/domainname SHA256 12622c8f3698e51f090abf84ce81aaaaa1ed72135291b41a3e7d6c7b6a2a9847
	/bin/chmod SHA256 5c3f8fec48601e0eaf7f47522ad8ff9fabb442b123ada97a71de285b4f6bf658

+ make veriexecgen into a host tool
2006-12-19 21:21:28 +00:00
christos
9450025adc from Anon Ymous: compile with -Wextra 2006-12-18 21:03:29 +00:00
christos
c2ea993397 Convert a "(void)&" to a volatile declaration. Also fix the
intstructions[] table terminator in gsp_inst.c so this will compile
with -Wextra.
2006-12-18 20:12:21 +00:00
christos
d0e5eb6a35 from Anon Ymous:
Remove a "(void)&" construction: iop is used by the parent
and always set after the vfork().  Also flag some parameters __unused
so this will compile with -Wextra.
2006-12-18 20:11:10 +00:00
bouyer
3697550e70 Don't depend on lubutil if we're building host tools. Fix tools build on
non-NetBSD hosts.
2006-12-16 12:59:16 +00:00
ad
9a12b97e85 Nx 5.0 -> Nx 4.0 2006-12-15 20:25:55 +00:00
he
f6b748e0c7 Fix mtree to release the returned strings from flags_to_string()
following the move of it from bin/ls to libutil and the change of
it to return malloc()ed memory.
2006-12-14 20:21:47 +00:00
he
0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
he
29ff6ed16a The "#ifdef UNUSED_BLOCK" in stat_flags.c wasn't so unused after
all -- it was used by the mtree source.  So, instead do an "#ifdef
MTREE", and define that one when building mtree.
2006-12-14 17:54:19 +00:00
reed
ce2634c53e This only has one option so get rid of plural "s". 2006-12-14 02:34:32 +00:00
reed
623f8d5ade Add a useful example. 2006-12-14 02:33:18 +00:00
macallan
55d5c3fe24 properly display OF variables that aren't strings 2006-12-10 03:06:25 +00:00
rillig
a5acac5748 Added a reference to passwd(1), which is useful to later change a
password.
2006-12-06 21:49:17 +00:00
lukem
287af45b8d Crank copyright.
Whitespace & linewrap consistency tweaks.
2006-12-05 10:26:28 +00:00
lukem
24891c430b Fix method to find pf.os so it works with '-s etc.tgz'.
PR 35185 by Valeriy E. Ushakov.

Don't bother to find pf.conf first; the code was a noisy no-op.
2006-12-05 10:18:41 +00:00
christos
9a150e0221 revert debug flags I accidentally committed before. 2006-12-05 03:52:02 +00:00
agc
221d869ea3 Minor cosmetic changes:
1. use EXIT_SUCCESS and EXIT_FAILURE, rather than 0 or 1, throughout
2. add some comments
3. use descriptive names for variables, so that their use is easily
gleaned.
2006-12-04 21:22:40 +00:00
agc
a1ab0bea62 Normally, veriexecgen will treat an error such as a dangling symlink,
or an inability to get the real path, as fatal.

Be a bit more verbose about this in the default case - tell the user
which directory entry caused the failure.

Also introduce a new -W flag, which will warn the user about the
error, but will still continue processing - it treats errors as
warnings, and allows a signatures file to be built.
2006-12-04 07:06:56 +00:00
peter
7682107fa9 Check if /etc/pf.conf and /etc/pf.os exist and copy them if they don't.
Suggested by lukem@.
2006-11-26 12:05:21 +00:00
peter
91c703ae73 Since the -D option doesn't do anything useful at all, remove it. 2006-11-26 11:38:07 +00:00
tsutsui
a261787514 Add some macppc specific description. Closes PR port-macppc/34496 by myself. 2006-11-25 15:12:02 +00:00
wiz
09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
christos
1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
christos
ab56b9a702 getdate -> parsedate 2006-11-20 20:33:33 +00:00
christos
c8226bf504 getdate is in libutil. 2006-11-17 22:11:28 +00:00