Commit Graph

7996 Commits

Author SHA1 Message Date
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