pooka
ad70c5ab2e
one more size_t -> uint32_t
2007-02-27 14:17:14 +00:00
pooka
cbb615f4db
size_t -> uint32_t cleanup to make LP64 build
...
noticed by wiz
2007-02-27 13:28:39 +00:00
plunky
7c710de82e
use CMSG_LEN and SOCKCREDSIZE macros to validate length because when
...
there are zero extra groups, the size of the cmsg is smaller than
sizeof(struct sockcred). This fixes a problem with registering
services during rc.d
while here, validate the pdu header length before using the contents
2007-02-22 20:49:32 +00:00
hubertf
1de6c4ec42
That one needs ctype.h, too (which was removed from the mrouted/defs.h
...
file for cleanup earlier today)
2007-02-22 01:29:35 +00:00
hubertf
64cd915703
Pull in ctype.h after it was removed from 'defs.h' in previous commit
...
to src/usr.sbin/mrouted.
2007-02-22 01:25:13 +00:00
hubertf
b5f80fa241
Move ctype.h header from defs.h to main.c where it's really used
...
From: Slava Semushin <slava.semushin@gmail.com>
2007-02-21 21:01:10 +00:00
hubertf
5873860993
- Removed unused ctype.h header
...
- ANSI'fy
- Removed __P() macros
From: Slava Semushin <slava.semushin@gmail.com>
2007-02-21 20:57:55 +00:00
hubertf
e6603d3964
Remove unneeded ctype.h header
...
From: Slava Semushin <slava.semushin@gmail.com>
2007-02-21 20:53:59 +00:00
briggs
d298894138
Install sys/dev/bluetooth/btuart.h.
...
Descend into and build/install usr.sbin/btuartd.
Install etc/rc.d/btuartd.
2007-02-20 21:29:08 +00:00
kiyohara
10abd6f2e2
Supprot Bluetooth HCI UART (H4) driver and daemon.
2007-02-20 16:53:20 +00:00
pooka
b44590b7d0
* document -s
...
* explicitly mention that this implements sshfs functionality
2007-02-17 22:19:20 +00:00
wiz
aa4aca15b3
Sort SEE ALSO.
2007-02-17 08:45:36 +00:00
dsl
486d411937
Add a -f (force) parameter to installboot(8).
...
If specified then checks on the disks BPB are not done, and any existing BPB
is deleted.
This is needed soince newfs(8) doesn't overwrite the BPB - which is basically
the FAT superblock.
Update documentation and add an example of using bootxx_fat16.
2007-02-15 22:23:11 +00:00
christos
4ea9e53dee
From Edgar: fix ino computation; allocate space for the superblock after
...
we know how big it is.
2007-02-15 19:00:11 +00:00
pooka
f5fed5348b
Support reclaim. To support dotdot lookup, here we leave the
...
reclaimed nodes hanging until all their children have been reclaimed
and then reclaim everything we can as far up to root as possible.
This is because the file system structures are currently interlinked
in a fashion which would make dotdot lookup based on purely a path
instead of a in-memory node parent member pointer very difficult.
Yes, this deserves a closer look some day.
2007-02-15 13:07:29 +00:00
apb
339d48d326
Run pwd_mkdb before running mtree.
...
Reported by Hauke Fath in PR 35570.
2007-02-11 15:04:17 +00:00
pooka
986368958f
Don't destroy puffs_nodes in success paths of remove and rmdir: the
...
kernel assumes that they will not be recycled until reclaim.
2007-02-10 02:53:27 +00:00
pooka
306e0025cf
Implement "superreaddir". This issues a getattr for all the
...
directory entries already in readdir and caches the results instead
of waiting for each individial getattr from the kernel. For
high-latency links the difference in "ls -l" is quite astounding
and even on my lan "ls -lR" is faster than for nfs in a normal
directory hierarchy (i.e. not one artifically setup to have thousands
of files per directory).
TODO: implement some sort of bandwidth/latency measurement in the
code and enable or disable this option based on than information
(and a command-line flag).
2007-02-09 23:36:17 +00:00
hubertf
82105ff74f
Make the output of 'list -n' aligned by always printing 8 hex digits.
...
Suggested by Nicolas Joly <njoly@pasteur.fr> in private mail.
2007-02-08 23:27:07 +00:00
elad
4a0f293388
revert previouses
2007-02-08 05:54:25 +00:00
elad
d1a83ca2d5
Add a comment indicating why this program is installed 0550, as suggested
...
by christos@. The comment reads:
# This program is set 0550 because, as security(8) states, it has
# the potential to deplete kernel memory, under certain conditions.
2007-02-08 02:59:51 +00:00
elad
db9dbd11ac
Install paxctl(8) as 0550.
2007-02-08 02:25:44 +00:00
wiz
cc97ec4b3c
Drop trailing whitespace, remove superfluous Pp.
2007-02-07 06:47:33 +00:00
reed
aa7b0cce96
Add an example on how the data is generated.
...
Point to pkg_info(1).
Add a brief history.
2007-02-06 01:22:40 +00:00
elad
f0d477cb85
Add perusertmp. Pointed out by Geoff Wing, thanks!
2007-02-05 02:34:30 +00:00
cbiere
2ed96b7598
* timed and timedc:
...
* Sprinkle const.
* Use EXIT_FAILURE instead of 1.
* Use err(), errx().
* Use calloc() instead of malloc()+memset().
* timedc:
* Non-terminated hostnames or unknown tsp_type could
cause a crash due to out-of-bounds reads in msite().
* Check the received packet size.
* Merged duplicated code into functions.
* Moved variables into the relevant scopes.
* Use connect() so that only the receiver can reply,
send()/recv() can be used and rejected packets
are immediately noticed by recv() instead of causing
timeouts.
* Updated manpage.
2007-02-04 21:17:01 +00:00
elad
3044852cc5
The hashing routines (MD5File() and co.) can do dynamic allocation, so
...
take advantage of that instead of an ugly hard-coded MAXHASHLEN limit
that needs updating.
I think this was suggested by cube@ years ago.
2007-02-04 08:03:18 +00:00
uebayasi
a045df12cc
Use periods in tables consistently.
2007-02-01 06:50:15 +00:00
uebayasi
a77b0db767
New sentence new line.
2007-02-01 06:46:27 +00:00
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
lukem
968ace8d2a
/etc/postfix/post-install needs to be 555 not 444.
2006-11-14 00:04:01 +00:00
christos
381520cf11
PR/34979: Scott Ellis: Detect 0 length name and skip it instead of infinite
...
loop.
2006-11-13 20:24:00 +00:00
ad
048c3d68d9
Tweak output slightly, and fix a bug.
2006-11-13 19:08:52 +00:00
ad
119899c354
Remove authors section, and update history where appropriate.
2006-11-13 16:33:56 +00:00
christos
3a4d16937d
compile a file with -Wno-stack-protector since it is using __cmsg_alignbytes()
...
for a variable on the stack.
2006-11-09 20:33:25 +00:00
ad
1279365222
Fix some minor bugs and improve output slightly.
2006-11-08 23:12:57 +00:00
joerg
e8a733de1a
Bump pkg_install version to 20061103 for plist processing fix and
...
more verbosity in pkg_delete.
2006-11-03 09:20:45 +00:00
joerg
bab4eecdd4
When processing symlinks in pkg_delete and the call to readlink failed,
...
it often helps to know why, so use warn instead of warnx.
2006-11-03 09:19:15 +00:00
joerg
5409c36039
If a plist contains @owner or @group entries and first rename failed,
...
pushout was called with NULL argument. This has the semantic of using a
working directory of "/", even though already read plist entries are
relative to prefix. The calls to chown and chgrp therefore end up with
the wrong arguments for the current directory. To compensate for this,
don't pushout the first time. As plists are not supposed to have
multiple @cwd entries anymore, this could most likely be simplified, but
that is outside the scope of this commit.
Reviewed by agc@
2006-11-03 09:17:24 +00:00
pavel
e98941caa4
Change the default shell to /bin/sh. It has most of the usability
...
advantages of our ksh (emacs line editing). There were objections against
using ksh, because our (pd)ksh is not the real ksh. See also the
discussion on tech-userlevel.
Motivation for changing the default from csh is better interactive
usability and desire to use a standard shell, which is already used for
all the system shell scripts.
Approved by core.
2006-11-02 21:42:08 +00:00
christos
11c53ad61c
kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
...
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.
2006-10-30 20:22:53 +00:00
he
2f5213da05
In order to avoid warnings (which is converted to error with -Werror)
...
about empty bodies in an if-statement, we need to make add some proprocessor
conditionals around these if statements. FFS byte-swapping is sometimes
compiled out of install-media versions of this program.
2006-10-30 07:03:34 +00:00
peter
ba31dc0ca8
- Show statistics immediately, not after a 5 second delay.
...
- For cbq, cdnr, hfsc and priq: if previous stats aren't available yet
then don't show the packet/byte rate.
- Place the count check before the delay and after the stats printing.
This fixes PR #32847
ok tron@
2006-10-28 11:43:02 +00:00
elad
28e2a804c9
For now, also mark "file" entries as "indirect".
2006-10-27 22:14:17 +00:00
christos
1ec0eb6725
remove openlog_r/syslog_r; we now have it.
2006-10-26 10:18:31 +00:00
christos
d1a5b782c3
buf can never be NULL (jani at xeebioneurope dot de)
2006-10-23 19:44:32 +00:00
christos
9881dfaad3
c99 initializer
2006-10-22 21:24:44 +00:00
christos
f6a7372b60
use c99 initializers
2006-10-22 21:09:47 +00:00
christos
f80d108fb1
fix initializers
2006-10-22 21:06:19 +00:00
christos
6846f1da94
remove dead code.
2006-10-22 21:05:28 +00:00
christos
dae6a9eb32
sprinkle volatile.
2006-10-22 21:00:21 +00:00
christos
6fef5d355e
WARNS=4.
...
- pass lint
- don't use sscanf fgets and fixed length buffers
- always use warnx to report errors.
2006-10-22 20:54:38 +00:00
he
2c2b5873de
If we're not using pthreads, claim also that we don't have sigwait.
...
This works around the problems observed on sparc and sparc64 (where
we've disabled use of pthreads) where the BIND applications end up
being killed with SIGTERM instead of exiting gracefully.
2006-10-22 20:53:51 +00:00
yamt
6c6dad782f
matches_spec: fix a bug so that "+host111,host1" actually matches to host1.
...
add a simple sanity check.
2006-10-21 09:42:26 +00:00
reinoud
0ce809091d
Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since all
...
vnodes were synced and processed backwards. This meant that the last
accessed node was processed first and the earlierst last.
An extra benefit is the removal of the ugly hack from the Berkly days on
LFS.
In the proces, i've also replaced the various variations hand written loops
by the TAILQ_FOREACH() macro's.
2006-10-20 18:58:12 +00:00
christos
eed7e5b25b
c99 initializer
2006-10-16 03:39:42 +00:00
christos
a3522b311f
c99 initializers
2006-10-16 00:11:57 +00:00
christos
9c32e391e9
strlcpy off by one errors (from gdamore)
2006-10-15 01:10:00 +00:00
christos
4ce31f7c8c
PR/34818: rad at twig dot com: Recognize solaris door files.
2006-10-14 21:14:02 +00:00
wiz
c7e99862ec
"Millisecond" doesn't have a hyphen. New sentence, new line. PostScript
...
output improvements. Bump date for previous.
2006-10-14 07:39:40 +00:00
wiz
ea31caa73b
Remove trailing whitespace.
2006-10-13 21:07:34 +00:00
wiz
b7a8d82a23
Sort options in usage.
2006-10-13 20:43:31 +00:00
wiz
1bce9c8b5d
Remove empty line.
2006-10-13 20:35:38 +00:00
peter
dd191f37f3
Merge the peter-altq branch.
...
(sync with KAME & add support for using ALTQ with pf(4)).
2006-10-12 19:59:07 +00:00
dbj
d0c4ff452b
implement -x by pruning fsnodes tree before building filesystem rather
...
than by skipping nodes while building filesystem
2006-10-10 01:55:45 +00:00
dbj
0e392af953
add implementation of free_fsnodes() which unlinks a node
...
from the hierarchy and frees it and any of its children
use it to free memory before a normal exit, which helps diagnostics
2006-10-10 01:46:49 +00:00
dbj
2d7375cec3
free specfile structure once it has been applied
2006-10-10 01:41:14 +00:00
dbj
1ca1523d99
use new implementation of link_check which i
...
implemented for du.c revision 1.25 :
Use open address hashtable with multiplicative double hash probing
and exponential hashtable growth for tracking previously seen inodes.
This replaces the O(n^2) behavior of linkchk() with an implementation
that should be O(n*logn)
2006-10-10 01:39:10 +00:00
dbj
daab9400b9
use strtoll instead of strsuftoll to parse -d so it can be specified
...
in hex with a 0x prefix
2006-10-10 01:32:42 +00:00
wiz
7927d9d5f0
Fix a typo.
2006-10-09 21:36:18 +00:00
elad
4967fa3f06
PR/20875: Robert Elz: Incorrect facts in rtsol(8) man page
...
Patch applied, thanks! (yes, I've read the audit-trail. This is correct.)
2006-10-08 19:36:05 +00:00
martin
a073765d4a
Apply patch from Peter Bex to fix PR bin/31922.
2006-10-08 18:09:47 +00:00
apb
eaa27e0a0c
Make this compile again. Reported by Steven Bellovin.
2006-10-08 18:00:30 +00:00
peter
e263dfd62f
WFORMAT is no more...
2006-10-08 17:52:28 +00:00
riz
6833444ffd
Note which interface caused a resolv.conf to be created. From
...
Robert Elz in PR#21109, tested by Rivo Nurges.
2006-10-08 17:09:32 +00:00
apb
4db4ce3a05
Document the -network=netname/prefixlength syntax. Requested in
...
PR 26891 by Arto Selonen.
Also some mdoc improvements.
2006-10-08 16:35:19 +00:00
dbj
e10e76d4c6
make -t cd9660 obey -x option similarly to ffs
2006-10-08 16:25:18 +00:00
elad
0bc9c7b601
PR/10429: Takahiro Kambe: bad144(8) dosen't show disk device.
...
Patch adapted to -current, thanks!
2006-10-08 14:52:14 +00:00
elad
1232ea27c4
PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
...
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +00:00
elad
a754c75075
PR/31956: Andrew Daugherity: Makefile.yp: shadow.byname map should respect
...
MINUID
Patch applied and verified by francisg@#NetBSD-code, thanks!
2006-10-07 16:54:38 +00:00
rpaulo
e3c4f7c039
PR 34692: wpa_supplicant script.
...
By Jukka Salmi.
2006-10-07 16:50:34 +00:00
elad
d71fc8765e
PR/28786: Jukka Salmi: mtree bug (in verify.c)
...
Apply patch from Peter Bex, thanks!
2006-10-07 15:35:51 +00:00
elad
e35f123530
PR/19069: Jun-ichiro itojun Hagino: traceroute(8) and traceroute6(8) can
...
send packet to udp port 0, which is illegal
2006-10-07 10:23:33 +00:00
elad
5e188d0b70
PR/30351: Hubert Feyrer: useradd(8) doesn't allow setting permissions of
...
new home [patch]
Adapted to current code and some nits from myself. Thanks for the patch!
2006-10-07 09:20:07 +00:00
elad
13ad340578
PR/23774: Jorge Acereda: wiconfig exits on non-critical errors
...
Patch (with some style nits) applied, thanks!
2006-10-07 00:47:18 +00:00
tron
886853e55b
Ensure alignment of the structure used for RPC requests. This stop
...
"ypbind" from segfaulting under NetBSD-sparc64 when "ypwhich" is
used to display the current NIS server.
2006-10-05 09:18:11 +00:00
wiz
de593fa02d
New sentence, new line.
2006-10-03 02:08:16 +00:00
wiz
96227bfb22
Bump date for previous.
2006-10-03 02:04:42 +00:00
wiz
caf900a58e
Sync usage with man page (correct program name, sort options).
2006-10-03 02:03:33 +00:00
wiz
c0cd11cf40
Some minor fixes.
2006-10-03 02:02:02 +00:00
elad
c443814068
Fix misleading error message (from PR/32519).
2006-10-01 19:43:15 +00:00
hubertf
fe81bd2f72
Add "list -n" to print ID and class numerical, instead of resolving to strings:
...
miyu% pcictl /dev/pci1 list
001:00:0: ATI Technologies Rage Fury MAXX AGP 4x (TMDS) (VGA display)
miyu% pcictl /dev/pci1 list -n
001:00:0: 0x50461002 (0x3000000)
OK'd by thorpej@
2006-10-01 00:13:27 +00:00
pavel
338033d1c7
revert change of default shell, reguested by agc@.
2006-09-30 11:47:00 +00:00
pavel
4d8dbf3bf0
Change the default shell to /bin/ksh, which is our best interactive
...
shell at the moment. Proposed on tech-userlevel and approved by hubertf@.
2006-09-30 10:50:32 +00:00
pavel
3b850c18c8
in userinfo, initialize buf (the buffer which will hold group names)
...
to be a null-terminated string. Otherwise, if the user is not a member
of any secondary groups, buf is completely uninitialized and userinfo
adds garbage to the list of groups printed.
2006-09-30 10:44:55 +00:00
macallan
e4bbe76d49
fix typo
2006-09-29 20:12:01 +00:00
plunky
a9ed4719e4
Fix it so that PINs are single use only.
...
This is important when you generate a random PIN and can't remember it.
2006-09-29 20:06:11 +00:00
macallan
8c774caf8c
Add gimpy's OF device tree dumping tool.
...
Tested on macppc and sparc64
2006-09-29 19:03:11 +00:00
plunky
ebb327f7cd
back off previous changes since the 'memory leak' fix - we dont need any of
...
that, just use the _nocopy version of the function.
2006-09-29 18:48:17 +00:00
christos
e02941da8f
Coverity CID 2714: Fix reversed test (from Arnaud Lacombe)
2006-09-29 18:40:57 +00:00
manu
3c09e24ba2
Add the dependendy on libutil
2006-09-29 05:06:34 +00:00