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
he
06658349aa
Back out previous, <stdlib.h> was the right include.
2006-09-28 09:13:56 +00:00
he
e189b3cc42
Now that we use free(), we also need <malloc.h>.
2006-09-28 09:11:04 +00:00
dbj
6e35df57f8
include stdlib.h for free()
...
i've also cleared the -kk flag and reset it to -kkv
2006-09-28 07:44:24 +00:00
christos
39feec939d
Coverity CID 4177: fix memory leak.
2006-09-27 22:07:20 +00:00
christos
0bc3d9d62f
Coverity CID 3792: Avoid double free; while I am here avoid NULL deref.
2006-09-27 21:39:15 +00:00
christos
fcf84daa48
Coverity CID 3789: Add assertion before NULL deref.
2006-09-27 21:33:07 +00:00
christos
34fd379e33
Coverity CID 4160: Remove dead code.
2006-09-27 21:22:52 +00:00
plunky
0b73a6ec91
expose the bthcid API details so that external PIN clients do not
...
need the NetBSD source in order to compile
2006-09-26 19:18:19 +00:00
wiz
1192b414ab
Mark up a path with .Pa.
2006-09-24 13:39:36 +00:00
martin
f1dbb9068a
Add a note to explain 'c' (or 'd') partition usage in the common example.
2006-09-24 13:28:50 +00:00
elad
06a208eecf
Move socket calls way up and drop root privileges sooner.
2006-09-24 11:34:35 +00:00
uwe
d2af0aadf3
Handle -b/-u after default display device is added, otherwise
...
change_state() is called while ds_list is still empty (unless a
display device was specificed with -f).
This makes -b/-u actually work.
2006-09-24 01:57:03 +00:00
dyoung
c565b00740
Replace the arp -n -a / arp -n -d rigamarole for cleaning the ARP
...
table with 'route -n flush -inet -llinfo -host', which is not only
more concise, but it doesn't require /usr/ to be mounted. This
lets us close bin/11079.
2006-09-23 22:54:43 +00:00
elad
f5b68de4eb
PR/34593: Arnaud LACOMBE: apm(8) prints meaningless default unknow value
...
for minutes_left
Patch applied, thanks for the report!
2006-09-23 22:06:42 +00:00
dyoung
8adc537db8
Extract common code from set() and delete() into subroutine
...
is_llinfo().
2006-09-23 21:11:14 +00:00
wiz
8651a9dfe6
Sync usage with manpage.
2006-09-23 20:26:25 +00:00
wiz
411b866d61
Sort options. Use more macros.
...
Add a separate line for {-b|-u}
2006-09-23 20:23:14 +00:00
elad
741d9f3bf8
PR/34305: screenblank could be more useful
...
Slightly different patch applied (1.4T is not the same as -current :)
Thanks!
2006-09-23 20:12:15 +00:00
wiz
4257327293
New sentence, new line. Add -c to SYNOPSIS.
...
Create EXIT STATUS section. Bump date for previous.
2006-09-23 20:09:41 +00:00
elad
b35a67141f
Add /lib, /libexec, and /usr/libexec to -D. Update man page.
2006-09-23 19:08:48 +00:00
sketch
e72d64c28d
Resolve the second part of PR/19387 from Greg Woods: print error correctly.
2006-09-23 17:38:42 +00:00
sketch
4fea323db6
Add a -c flag to specify the size of cache to use. For very large databases,
...
increasing this value accordingly gives massive speed improvements.
Prompted by Greg Woods in PR/19387, although mostly taken from FreeBSD.
2006-09-23 17:17:04 +00:00
jmmv
15adcce63e
Add a check to aid in the migration of motd contents between development
...
releases. Suggested by tron@ and approved by silence in tech-userlevel@.
2006-09-23 08:27:52 +00:00
bad
4f0a5e9849
Apply changes to ffs_find_disk_blocks_ufs1() from revision 1.19
...
to ffs_find_disk_blocks_ufs2() too. Except for data types the
code in the two functions is the same.
From the original commit message:
Add support for finding files on RAID partitions. This allows us to
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition.
Briefly tested under 3.x/i386.
2006-09-20 21:49:12 +00:00
elad
d2a7cc99dc
Oops, fix test. Pointed out by Matt Fleming, thanks!
2006-09-19 20:37:08 +00:00
elad
c94625dc78
Oops, -S is supposed to be optional. Pointed out by Matt Fleming, thanks!
2006-09-18 20:53:48 +00:00
elad
f8c54c15cf
Add the -S flag, for setting the signatures file immutable after creating
...
it.
2006-09-18 17:47:25 +00:00
wiz
31eaae697a
Improve CAVEATS section. Based on mail by yamt@. Bump date.
2006-09-18 16:03:36 +00:00
elad
47f2f39c75
Oops, forgot to remove -g.
2006-09-18 10:09:31 +00:00
wiz
5e52501584
Sort sections.
2006-09-17 10:27:54 +00:00
elad
ac00894537
Clarify some more, tiny markup fixes. Veriexecgen can be just invoked as:
...
# veriexecgen
after a clean install.
2006-09-17 10:14:36 +00:00
elad
55e6bda6fa
Fix some confusions; pointed out by wiz@, thanks!
2006-09-17 05:04:05 +00:00
wiz
86f767cf74
Drop trailing whitespace. Fix a typo.
2006-09-17 01:02:30 +00:00
elad
8fd10e3884
Add an EXAMPLES section.
2006-09-16 21:41:59 +00:00
elad
c1ea404a01
crypto/sha1.h -> sha1.h
2006-09-16 21:26:02 +00:00
elad
ade08c91dc
Add a C version of Veriexec's fingerprint generator, written by Matt
...
Fleming.
This one has some nice options -- for example, an admin can run right
after installing a system:
fpgen -D
and it will fingerprint a set of "common" system directories to the
default loaction. See the man-page for more stuff.
Performance-wise, here are results for both fpgen.sh (old) and this
new tool:
474.599u 574.335s 13:53.05 125.9% 0+0k 0+307io 0pf+0w
0.424u 0.131s 0:00.56 98.2% 0+0k 0+2io 0pf+0w
...guess which is which? (that's ~1500 times *faster*)
2006-09-16 20:54:42 +00:00
christos
6ec268c772
PR/30879: Jukka Salmi: syslogd(8) doesn't parse `@' hostname specification
...
correctly
2006-09-16 17:05:32 +00:00
christos
6051bcc73f
PR/28753: Martin J. Laubach: syslogd disables remote logging on non-fatal errors
2006-09-16 16:57:27 +00:00
wiz
8d3165ac32
Sync usage with man page (-b).
2006-09-16 06:34:55 +00:00
manu
d542f7adc2
Fix build
2006-09-16 06:19:50 +00:00
christos
ca09b578d0
PR/14563: Brian A. Seklecki: syslogd binds udp sockets on all interfaces
...
Add -b option to pass a bind address.
2006-09-15 20:32:59 +00:00
pavel
580077ee81
add a period after a sentence.
2006-09-12 20:48:47 +00:00
pavel
b1328dedeb
describe how to suppress printing of "type" keyword when -k is used.
...
bump date.
2006-09-12 20:22:49 +00:00
dbj
5671786b47
fix problem with file_exists_exact where it was returning false
...
for dangling symlinks because it was checking them with test -e
2006-09-12 01:15:16 +00:00
dbj
ad69f7c05a
fixes for building into case preserving, but case insensitive $DESTDIR
...
- have checkflist do a second possibly case insensitive check for
files which are missing from DESTDIR
- have postinstall require exact case matches for obsolete files
2006-09-11 22:16:10 +00:00
plunky
ed4d8d47a0
also include service name in dictionary being sent to kernel.
...
(this is not used just yet, but it might be in the future and it will
be easier if we dont have to provide code to handle its absence)
2006-09-11 18:30:27 +00:00
wiz
6d434b9d71
Drop trailing space.
2006-09-10 22:21:58 +00:00
wiz
97c200c877
Sort options.
2006-09-10 21:09:48 +00:00
wiz
59dbad538e
Sort sections. Sort options. Fix Xref section.
2006-09-10 21:08:56 +00:00
he
d4831ce469
Print explicit 64-bit types using the format macros from int_fmtio.h.
...
Unbreaks the build for our LP64 ports, where "long long" typically is
not 64 bits.
2006-09-10 19:13:54 +00:00
plunky
4f1cbddc12
update to bluetooth device attachment:
...
remove pseudo-device btdev(4) and inherent limitations
add bthub(4) which autoconfigures at bluetooth controllers as they
are enabled. bluetooth devices now attach here.
btdevctl(8) and its cache is updated to handle new semantics
etc/rc.d/btdevctl is updated to configure devices from a list
in /etc/bluetooth/btdevctl.conf
2006-09-10 15:45:55 +00:00
manu
ba5b97f363
Fix ipsec-tools build after recent import
2006-09-09 17:52:01 +00:00
yamt
ac9e01c324
- discourage nfs re-exporting.
...
- bump date.
2006-09-08 21:32:05 +00:00
ad
c2ed6959c7
Add a very brief EXAMPLES section.
2006-09-07 14:52:38 +00:00
ad
d8323c46d4
Fix a typo.
2006-09-07 14:44:05 +00:00
ad
96d4a987b2
Fix an #include.
2006-09-07 01:23:59 +00:00
ad
297f461929
Add the lockstat command: displays a summary of kernel locking events
...
recorded over the lifetime of a called program.
2006-09-07 00:50:45 +00:00
itohy
8e29f0f218
Use "stty size" to acquire screen width reliably.
...
The fields of the first line of "stty -a" is not fixed.
Fix PR bin/32343.
2006-09-03 09:19:07 +00:00
wiz
e41d3cdc7d
Bump date for previous.
2006-09-03 00:24:05 +00:00
uwe
85f8b5b279
Mention landisk as supported.
2006-09-02 16:18:02 +00:00
yamt
932de434ea
deal with variable-sized filehandles.
2006-09-02 11:10:24 +00:00
uwe
973bc97b66
NetBSD/landisk support.
2006-09-01 21:47:21 +00:00
perseant
16c0dce8d4
Update dumplfs to reflect new segment flags and "orphaned" file status.
2006-09-01 19:57:41 +00:00
gson
d9fde78727
In -i mode, flush standard output after each line. This is needed to
...
make the output appear in a timely fashion when redirected to a file
or pipe.
2006-08-31 10:25:04 +00:00
jdc
80ab849735
Disable threaded support for sparc and sparc64.
...
OK martin@.
2006-08-28 15:37:05 +00:00
plunky
c980b109dd
BluetootH SCO Audio update.
...
Provide an ioctl to set the SCO mtu value in the controller and
place limits in the SCO code such that only packets of this size
may be sent.
Move the mtu option from btsco(4) and btdevctl(8), to the
btconfig(8) program.
Remove temporary BLUETOOTH_SCO kernel option, and enable SCO
socket access.
Fix incoming connection handling for btsco(4) and SCO sockets.
Fix documentation to reflect the new world order.
2006-08-27 11:41:58 +00:00
christos
1b75c508c8
Programs that had their own efuns, use libutil's now.
2006-08-26 18:15:37 +00:00
matt
b7052c7cc1
Removed as part of XNS purge.
2006-08-26 18:10:40 +00:00
matt
13f8672f00
Don't descend into trsp anymore.
2006-08-26 17:26:00 +00:00
hubertf
a357c40934
In two TCP error cases, say that it's TCP, not UDP.
...
Pointed out by pee- on IRCnet #NetBSD.
2006-08-25 11:59:30 +00:00
bsh
2abd1dd123
avoid very long loop when you run pcictl on a PCI bus which has no devices on it.
2006-08-24 07:30:16 +00:00
hubertf
f83266c2e3
Explain that etcupdate(8) may do the job that postinstall(8) can't
...
do. (Example: fix master.passwd to include _rwhod and whatnot)
OK'd by lukem@
2006-08-18 12:02:55 +00:00
hubertf
c200fdcc45
give a hint on how to fix the 'NOT FIXED' checks -> fix manually
...
OK'd by lukem@
2006-08-18 12:01:53 +00:00
uwe
2799149345
Option -B does not have an argument. Sync getopt string with reality.
2006-08-17 23:42:37 +00:00
plunky
3445aa6e08
Print the error string on failure
2006-08-17 20:18:23 +00:00
plunky
3762d2c843
always create dictionary entry for local-bdaddr as it is wanted by btdev(4)
2006-08-17 20:16:54 +00:00
plunky
a097328fe5
Add service discovery support for the Handsfree profile
2006-08-17 20:13:31 +00:00
plunky
47a52241bf
Replace static 'FreeBSD' string with operating system name gleaned
...
from uname(3)
2006-08-17 19:46:57 +00:00
macallan
4c36dff3e4
include openfirmio.h when needed
2006-08-17 03:50:21 +00:00
macallan
ad53a0a585
Add OpenFirmware support to eeprom(8) and build it on macppc.
...
Tested on macppc and sparc
2006-08-16 03:24:57 +00:00
christos
b01ee2f8e2
Add Auto-Submitted header per RFC 3834 from OpenBSD
2006-08-15 16:18:52 +00:00
plunky
885b13c515
rename btcontrol(8) as btdevctl(8) to make it fit with the NetBSD naming
...
scheme for control programs. This fixes pr 34051.
2006-08-13 09:03:21 +00:00
dyoung
595db2454b
While I am here, KNF err(3) and errx(3) usage. Compare a pointer
...
with NULL instead of 0.
2006-08-13 00:20:25 +00:00
dyoung
4329d94fb4
Check for fwrite(3) error returns, and exit with an error message,
...
instead of silently failing.
2006-08-13 00:19:30 +00:00
hubertf
ac583aa32a
Xref etcupdate from postinstall, and vice versa.
2006-08-11 20:28:22 +00:00
martin
e06a3327c9
Typo
2006-08-09 14:12:47 +00:00
skrll
f20caddaed
Correct the usage message.
2006-08-09 11:57:51 +00:00
skrll
6458f6d488
Adapt iwi(4) to use firmload(9) and remove firmware loading from
...
iwictl(8).
2006-08-09 11:35:59 +00:00
yamt
a52757bf4c
deal with variable sized file handles.
2006-08-08 13:10:05 +00:00
skrll
f1c3aa8a63
Remove the SIOCSKILLFW define. It's not used anymore.
2006-08-06 07:31:32 +00:00
wiz
1763dd287c
New sentence, new line. Punctuation fixes.
2006-08-04 20:38:52 +00:00
rpaulo
073f7a97f3
Add missing information. Reviewed by Sam Leffer.
2006-08-04 20:32:47 +00:00
tron
dc71fd7600
Make sure the buffer used to retrieve routing message from the kernel
...
is properly aligned. This should fix PR bin/34124.
2006-08-02 13:44:53 +00:00
martin
b4cb63a646
Make filehandles opaque to userland
2006-07-31 16:34:42 +00:00
plunky
3cee521531
prop_objects should be released when we no longer need them, the
...
prop_dictionary_set will have retained them.
2006-07-30 19:36:39 +00:00
wiz
66be93d7db
Sort sections. Punctuation nits.
2006-07-30 00:24:40 +00:00
wiz
d8488cf5fd
Bump date for previous. New sentence, new line. Sort sections.
2006-07-30 00:09:09 +00:00
wiz
876cc6f561
Bump date for previous. New sentence, new line. Use Dv.
2006-07-29 23:55:28 +00:00
wiz
7169170d51
Bump date for previous.
...
Sort SEE ALSO.
Add some dots at end of sentences.
New sentence, new line.
2006-07-29 23:51:09 +00:00
kardel
e4dbee883d
remove HAVE_GCC4 specialties with the merge of 4.2.2p2
2006-07-29 08:18:36 +00:00
kardel
0f50a38490
merge 4.2.2p2
2006-07-29 08:17:02 +00:00
christos
b00752709e
more cleanups.
2006-07-28 16:34:28 +00:00
christos
ee343feee7
use indirect lookup to save space.
2006-07-28 15:15:16 +00:00
christos
82916ef1ea
add services_mkdb back.
2006-07-27 22:15:07 +00:00
christos
69ee26299b
Put this back, heavily hacked by me.
2006-07-27 22:13:38 +00:00
christos
bf31de0036
Ansify, add dup support.
2006-07-27 15:29:07 +00:00
tron
fdeefd9c3e
Bluetooth fixes by Iain Hibbert:
...
Create "/etc/rc.d/btcontrol" to attach bluetooth devices at boot.
2006-07-26 11:14:55 +00:00
tron
ebe62ad714
Bluetooth fixes by Iain Hibbert:
...
Remove bluetooth.conf(5) and config parsing from libbluetooth(3)
as this is no longer required.
2006-07-26 11:11:04 +00:00
tron
7b1d74d73f
Bluetooth fixes by Iain Hibbert:
...
Remove bluetooth.conf stuff from bthcid(8), and use XML with proplib(3)
for keyfile. Also, associate keys with local and remote address.
2006-07-26 11:00:07 +00:00
tron
4241fec1bf
Bluetooth fixes by Iain Hibbert:
...
Change the way in which bluetooth devices attach to system. The
new way is for devices to attach directly to a btdevN device via
its own control file /dev/btdevN.
- bthub(4) is replaced by btdev(4).
- /dev/bthubctl is replaced by /dev/btdevN.
- configuration now uses proplib(3) property lists.
- btcontrol(8) updated to use new API, and now uses private
- XML config file /var/db/btdev.xml.
2006-07-26 10:30:59 +00:00
tron
eea081262a
Bluetooth fixes by Iain Hibbert:
...
- Add 'page timeout' option.
- Fix printing of 2Mb/3Mb packet types.
2006-07-26 10:00:43 +00:00
simonb
53211cb1ae
Since the swapping of tk_nin and tk_nout was moved to its own
...
function (tkswap()), actually call this function.
Fixes problems where the tin/tout fields showed total tty IO since
boot instead of just what has happened in the last second.
2006-07-26 03:33:02 +00:00
perseant
941ce5ccce
Make dumplfs report the new SS_CLEAN flag.
2006-07-21 00:20:29 +00:00
gson
3c6f48ffcd
Bump PKGTOOLS_VERSION for today's fix to add/perform.c.
2006-07-20 11:19:33 +00:00
gson
23198f432e
Fix uninitialized variable which was causing pkg_add -u to randomly
...
dump core. This may fix PR pkg/30292.
2006-07-20 08:34:32 +00:00
tron
903cbf25d1
Create and populate "/etc/bluetooth". Based on patch submitted by
...
Iain Hibbert on "current-users" mailing list.
2006-07-15 21:32:58 +00:00
yamt
6ea460924a
mntsrv: wrap a long line.
2006-07-13 23:18:59 +00:00
martin
a3b5baed42
Fix alignement problems for fhandle_t, exposed by gcc4.1.
...
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.
Discussed on tech-kern, with lots of help from yamt (thanks!).
2006-07-13 12:00:24 +00:00
christos
3f33249541
We don't need sed to do trivial parsing.
2006-07-10 23:07:09 +00:00
rillig
591ed5a67e
In header files, there shall be no variable definitions, only
...
declarations. Found by MIPSpro.
2006-07-10 21:42:18 +00:00
dillo
4b176d8d5e
Fix pkg_info -Q for binary packages, noted by rillig.
...
Bump version to 20060701.
2006-07-01 19:31:23 +00:00
martin
1e34bd3ea3
struct ieee80211_node_sysctl does not align ns_tstamp properly to directly
...
access it as a 64bit int - memcpy to stack and use the aligned copy
instead.
2006-06-30 21:30:19 +00:00
wiz
12df45a0e6
Sort SEE ALSO.
...
XXX: this file has no license.
2006-06-28 21:10:08 +00:00
drochner
70de924429
there is no ural(4) on NetBSD, this is all ral(4)
2006-06-28 15:06:59 +00:00
drochner
a2362baffb
if a data read from the interface fails, print the "wreq" type
...
before erroring out
2006-06-28 15:05:54 +00:00
hubertf
611d442807
Update usage() to match the manpage - most important, add missing options
2006-06-27 23:33:21 +00:00
christos
5efc77fb1e
use realloc instead of free+calloc
2006-06-27 12:39:23 +00:00
mrg
d1e7efd01a
commit the correct version of the previous.
2006-06-25 03:03:41 +00:00
mrg
5609a371c9
make MKCRYPTO=no work again.
2006-06-25 03:02:19 +00:00
wiz
4659bd50a3
Sort options in usage().
2006-06-24 21:04:48 +00:00
wiz
4b8efa57bb
Sort options.
2006-06-24 21:03:57 +00:00
christos
ab547228f5
Add a -g switch to retrieve the current vt.
2006-06-24 19:57:32 +00:00
christos
876fcff6e8
warns=4
2006-06-24 19:57:17 +00:00
mrg
9bf1d4a9b8
work around some GCC4 internal problems on m68000 platform.
...
document the hack, and update another GCC4 list.
2006-06-24 05:21:11 +00:00
mrg
2ed89a9707
add support for MKISCSI=no.
2006-06-24 05:14:01 +00:00
drochner
d02011e188
set NTP_KEYSDIR to "/etc/ntp" so that the crypto/autokey/leapseconds stuff
...
works as before
2006-06-23 16:58:58 +00:00
jdc
f00029f865
Don't include <dev/raidframe/raidframevar.h> but define RF_PROTECTED_SECTORS
...
directly.
Including raidframevar.h needs several definitions adding to the compat
framework for the tools builds, which aren't needed here.
XXX It's probably sensible to split off the few defines from raidframevar.h
into a separate header file.
2006-06-20 14:04:22 +00:00
jdc
373c752392
Add support for finding files on RAID partitions. This allows us to
...
add the block list of the 2nd stage boot loader to the 1st stage boot
loader when the partition is a RAID partition. Tested on sparc.
Reviewed by gdt.
2006-06-20 05:37:24 +00:00
gdamore
a5c89047c0
Initial import of bluetooth stack on behalf of Iain Hibbert. (plunky@,
...
NetBSD Foundation Membership still pending.) This stack was written by
Iain under sponsorship from Itronix Inc.
The stack includes support for rfcomm networking (networking via your
bluetooth enabled cell phone), hid devices (keyboards/mice), and headsets.
Drivers for both PCMCIA and USB bluetooth controllers are included.
2006-06-19 15:44:33 +00:00
reed
5fe28dc7e5
Fix typo or mispelling.
2006-06-17 04:58:14 +00:00
reed
ad5640a8e8
Fix mispelling.
2006-06-17 02:22:02 +00:00
elad
51d6ae51f1
mark strcpy as safe
2006-06-17 00:16:13 +00:00
christos
8852dbf5f6
This has not worked since 2003. (Hello Itojun!)
2006-06-15 19:32:55 +00:00
he
255c2c88af
We don't have the <ieeefp.h> header if we're compiling for vax, so
...
add an ifdef around HAVE_IEEEFP_H.
2006-06-14 20:30:56 +00:00
ginsbach
d59a581d86
Adapt rpcbind(8) to new return value from socket(2) for unsupported
...
address families.
2006-06-14 16:25:17 +00:00
kardel
8704ff927b
import and integrate NTP 4.2.2
2006-06-11 19:34:07 +00:00
martin
6da7ec83d0
Cast yytext values to unsigned char when testing with isspace() to avoid
...
sign extension effects for non-ASCII characters.
2006-06-11 19:25:19 +00:00
martin
b9a75d90c7
Some windows .INF files are UNICODE - extend the scanner to deal with this.
2006-06-11 17:02:07 +00:00
tron
3421be369d
Remove "/var/spool/clientmqueue" and "/var/spool/mqueue" from the list
...
of obsolete directories and handle them via the "sendmail" item in
postinstall(8), too. These directories are of course necessary on
systems using the "sendmail" package.
Problem pointed out by Hisashi T Fujinaka on "current-users" mailing list.
2006-06-09 21:19:40 +00:00
tron
c5ddcac518
Remove the "sendmail" configuration files and startup scripts from the
...
list of obsolete files. Resurrect the "sendmail" item which now flags
these files as obsolete unless the "sendmail" package is installed.
2006-06-09 12:18:30 +00:00
simonb
b93b04bf77
Sort the obsolete rc.conf(5) variables to check, and only check
...
sysctl once(!).
2006-06-08 20:58:38 +00:00
kardel
d3390a5a9b
merge timecounter branch
2006-06-07 20:59:28 +00:00
reed
4cfce7b21f
Check return value for setgid(), initgroups(), and setuid().
...
Log error and exit if failure.
2006-06-05 16:41:34 +00:00
christos
b3c28e1d64
kill explicit size printing in warning.
2006-06-03 21:55:28 +00:00
christos
98917af5f7
Increase the size of the array by two, so that we fit.
2006-06-03 17:29:56 +00:00
christos
842c42957f
check the return value of setsid.
2006-06-03 16:02:30 +00:00
jnemeth
b7899a65bc
try again with the Coverity annotation
2006-06-02 21:44:37 +00:00
hubertf
924dbbdb7d
Fix fix for Coverity CID 2751:
...
Move an error check to the right place, and instead of blindly insisting on
an argument for all of "no-emul-boot", "no-boot", "hard-disk-boot" and
"boot-load-segment", only require it for the last one, which is the only
one that requires/uses it.
OK'd by Christos
2006-06-01 21:06:37 +00:00
rpaulo
134b1ef326
Add missing coma.
2006-05-31 20:23:52 +00:00
rpaulo
fc5eb63af6
It doesn't make sense to print the MPLS ttl here.
...
While here, make the output look like Cisco IOS. Suggested by Mihai CHELARU.
2006-05-31 20:22:52 +00:00
tron
300dbf11e5
Check whether user and group "postfix" exist.
2006-05-30 19:31:13 +00:00
tron
73575a68a2
After removal of "sendmail":
...
- Remove the code dealing with "sendmail" updates.
- Don't check for the existence of user and group "smmsp" any more.
- Remove "/etc/rc.d/smmsp" and "/etc/rc.d/sendmail" because there defaults
have been removed from "/etc/defaults/rc.conf".
2006-05-30 05:53:24 +00:00
drochner
46e4eb1dd0
NetBSD has now "struct timespec" in ntptimeval
2006-05-29 10:04:13 +00:00
hubertf
5fdc69efae
Xref a few more manpages: user(8), group(8), ...
2006-05-29 01:38:33 +00:00
jnemeth
4c99f4ecf2
unlink temp file in error case
2006-05-28 11:33:56 +00:00
martin
ad53adb7c1
Make "entries" optional - so that `echo system > /etc/isdn/isdnd.rc; isdnd`
...
works.
2006-05-27 20:11:14 +00:00
jnemeth
d9a7dcfba5
Coverity annotation -- although memsave free()s its first argument, it
...
will allocate memory and assign it to its first argument, so it is neutral
Coverity CID 3229: memory leak -- failed to fclose() master in moduser()
Coverity CID 3228: memory leak -- failed to free() newname in groupmod()
2006-05-27 03:41:48 +00:00
jnemeth
62381dbddf
Coverity CID 3785: calling fclose() twice on same file pointer
...
Coverity CID 3780: dereference of NULL pointer
Approved by: christos@
2006-05-26 13:21:47 +00:00
jnemeth
305a7bfee2
In bincvt() use fdopen() on the fdesc returned by mkstemp(), instead
...
of fopen().
2006-05-26 11:45:31 +00:00
jnemeth
693e9aec19
Coverity CID 2977: failed to check for error return from ftell()
2006-05-26 11:13:20 +00:00
jnemeth
e10c71d2be
Coverity CID 3685: memory leak
...
While here, check for failure to create temp file in bincvt() and close
unused file descriptor.
XXX bincvt() should be rewritten to use fork()/exec() instead of system().
2006-05-26 10:59:58 +00:00
jnemeth
1124e30e6e
Coverity CID 3027: possible dereference of NULL pointer.
...
Also don't bother zero'ing memory immediately before reading the
.SYS file into it and check for errors while reading the file.
2006-05-26 09:25:27 +00:00
jnemeth
14902917f6
Remove redundant check for end of list wrapping around on itself.
...
It this were to actually happen, then others parts would go into
infinite loop. Also, fix KNF. Found while checking Coverity
CID 3784.
2006-05-26 02:16:17 +00:00
christos
e4dddba9c6
typo s/fp/fpw/
2006-05-25 03:17:43 +00:00
christos
862f4856b8
typo s/fp/fpw/
2006-05-25 03:17:26 +00:00
christos
cc17521d3c
Coverity CID 2959: Check before deref dammit.
2006-05-25 03:03:39 +00:00
christos
785022eb47
Coverity CID 2984: Static array overrun.
2006-05-25 03:02:25 +00:00
christos
df7031b876
Add missing semicolon.
2006-05-25 02:53:10 +00:00
christos
57ff0c4946
remove dup &&
2006-05-25 02:50:50 +00:00
christos
fdb8821322
Coverity CID 1455: Make sure that we don't overrun the array.
2006-05-25 02:48:09 +00:00
rpaulo
024ed52e7d
Add missing #endif.
2006-05-25 02:40:58 +00:00
christos
a43996b8ca
Coverity CID 783: Add an assertion for a NULL deref.
2006-05-25 02:37:38 +00:00
rpaulo
4264348cac
Beautify.
2006-05-25 02:35:50 +00:00
christos
79fc501cb4
Coverity CID 2294: Fix memory leak.
...
While here remove some bogus casts.
2006-05-25 02:35:32 +00:00
christos
1716cd4ef4
Coverity CID 1070: Check for NULL deref that cannot happen.
2006-05-25 02:33:16 +00:00
rpaulo
3a387eb457
Time to remove __P().
2006-05-25 02:32:56 +00:00
christos
25b83d98a5
Coverity CID 3653: Fix memory leak.
2006-05-25 02:31:38 +00:00
rpaulo
d5c00ee8c6
Now it uses the RFC 3542 API.
2006-05-25 02:21:59 +00:00
christos
830feeb9f3
use memcpy instead of bcopy.
2006-05-25 02:10:53 +00:00
christos
f5e466e11a
Coverity CID 2537: Avoid double free, and random free. how did this work?
2006-05-25 02:05:40 +00:00
christos
e86e72d9a8
Coverity CID 3194: Avoid NULL deref.
2006-05-25 02:01:40 +00:00
christos
180ca89a2b
Coverity CID 3195: ifdef out dead code.
2006-05-25 01:58:39 +00:00
christos
e30bfd160d
Coverity CID 3396: Fix file pointer leak.
2006-05-25 01:51:21 +00:00
christos
fb0d335338
Coverity CID 3377: Fix memory leak on error.
2006-05-25 01:49:30 +00:00
christos
d8050237b6
Coverity CID 1188: Don't check for NULL just to log and then die
...
de-referencing; return instead.
2006-05-25 01:44:28 +00:00
christos
4aafa6340a
Coverity CID 1189, 1190: Don't check for NULL just to log and then die
...
de-referencing; return instead.
2006-05-25 01:43:58 +00:00
christos
6388d5cc98
Coverity CID 1191, 1192: Don't check for NULL allocation, just to log it
...
and then die dereferencing. Return instead.
2006-05-25 01:41:13 +00:00
christos
43c323928f
Coverity CID 2718: Avoid using free'd memory.
2006-05-25 01:38:41 +00:00
christos
76c4e27a2a
Coveriy CID 797: Avoid NULL deref.
2006-05-25 01:22:53 +00:00
christos
c94cfed796
Coverity CID 2282: Fix memory leak.
2006-05-25 01:20:21 +00:00
christos
64274c3774
Coverity CID 754: Fix erroneous check. How could this ever work?
2006-05-25 01:18:59 +00:00
christos
c0dd54b15c
Coverity CID 3214: Check getrawpartition return code.
2006-05-25 00:42:23 +00:00
christos
2046b10b5b
Coverity CID 601: Remove unused code.
2006-05-25 00:37:03 +00:00
christos
75aa3e0d4e
Coverity CID 3308: Free the head of the group list, not the tail.
2006-05-25 00:33:24 +00:00
christos
bd00756294
Coverity CID 2524: Return error instead of trying to allocate random bytes
...
from the stack.
2006-05-25 00:27:56 +00:00
christos
323f38bde6
Coverity CID 2751: Avoid NULL deref.
2006-05-25 00:25:00 +00:00
christos
ddd7ee439d
Coverity CID 830: Avoid NULL deref.
2006-05-25 00:21:52 +00:00
christos
ede17ba69d
Coverity CID 3322: Fix memory leak.
2006-05-25 00:19:27 +00:00