yamt
69f5e94d4e
define dummy NOCRED by ourselves, rather than assuming that kernel headers
...
provide it.
2006-05-03 15:04:51 +00:00
rpaulo
227effc121
Add two new options from FreeBSD:
...
hidessid | -hidessid: SSID broadcast control
apbridge | -apbridge: how to pass packets between wifi clients
2006-04-29 21:32:29 +00:00
perseant
00d9f4be09
Avoid a core dump if ginode() returns NULL. Correct an error message
...
while we're here.
2006-04-28 00:07:54 +00:00
wiz
94aa5cae8a
New sentence, new line.
2006-04-23 16:48:46 +00:00
jld
aab6081169
When testing seek speed (for the -A option), use sector-aligned offsets
...
so the reads don't always fail, and also be more careful not to read off
the end of the disk. If a read does fail, error out instead of silently
leaving the loop early (and possibly dividing by zero seconds), because
it means our idea of the disk size is wrong, or worse.
This fixes PR bin/33199.
2006-04-23 07:56:58 +00:00
skrll
7ba7efe154
Don't use cast expressions as lvalues as newer versions of gcc warn.
2006-04-21 15:00:49 +00:00
christos
23be85ae7f
"struct ucred" should not be exposed to userland. Instead make it a "void *"
...
since it is not really used.
2006-04-19 15:52:58 +00:00
hannken
f4729837b8
Emit "a snapshot of" message for snap_internal case too.
2006-04-19 15:42:12 +00:00
salo
b0b7590bc7
Add support for running multi-user in a chroot() environment.
...
How it works:
- after successful execution of /etc/rc, check the value of "init.root"
sysctl node, if it's different than "/", chroot() into its value and run
/etc/rc inside the chroot(),
- in single-user, return back to the original / file system.
Allows running with / file system on e.g., cgd(4), vnd(4) or ccd(4) volumes.
Idea first discussed with Matt Thomas, implemented by Jachym Holecek <freza
(at) liberouter.org> with some nitpicks by me. Successfully used by me for
almost a year with / on a cgd(4) volume (for more information about the setup
check ftp://ftp.NetBSD.org/pub/NetBSD/misc/salo/init-chroot/ ).
2006-04-18 11:40:26 +00:00
perseant
7700866e01
Remove the free list ordering/disordering code, since the kernel now keeps
...
the list in order (ordering it on mount).
Regularize error messages: these are now all in ALL CAPS, with all hex
numbers (not reported in caps) prefixed by 0x. (The non-fsck-specific
messages are an exception to this all-caps rule.)
2006-04-17 19:05:16 +00:00
perseant
1f429c3724
Don't update the superblock if we were run with -n, regardless of whether
...
the "clean" bit is set.
2006-04-13 19:50:10 +00:00
dbj
a015786b0d
the root directory of non fat32 filesystems is stored in a special area.
...
a couple of corner cases can cause it to fail to write out that area
after it performs repairs.
2006-04-10 03:25:11 +00:00
jnemeth
7b95c00460
Coverity CID 2784: Add more checks for value==NULL.
2006-03-30 08:02:40 +00:00
christos
fbe98ede0f
Coverity CID 2763: Add more checks for value==NULL.
2006-03-26 23:12:48 +00:00
christos
48ce3c5d75
Coverity CID 2764: Avoid null reference
2006-03-26 23:10:26 +00:00
christos
3c0ef79b7f
Coverity CID 2766: Don't leak memory.
2006-03-26 23:06:45 +00:00
jmmv
862d1d4e18
There is no need to check for the resulting value of a strto*l call after
...
ERANGE has been raised. Just remove the extra checks, which were incorrect
anyway in almost all calls because they did not match their corresponding
strto*l function.
This caused mount_tmpfs to not catch some error cases in, e.g., i386, as
strtoll was returning LLONG_MAX instead of LONG_MAX, which are different
in this platform (but not on 64-bit ones).
Problem found by martin@; thanks!
2006-03-26 16:15:15 +00:00
reed
f21a315136
In the DIAGNOSTICS section, document that mismatched LKM and kernel
...
versions will be reported to the console and to the system message
buffer.
And update documentation date.
2006-03-24 00:38:23 +00:00
wiz
d292467748
Remove Kerberos4/NFSKERB settings.
2006-03-23 23:53:23 +00:00
wiz
637b6cf962
unifdef NFSKERB (Kerberos 4 support). Update man page and usage() for
...
-K and -m removal (Kerberos 4 specific options).
2006-03-23 23:23:27 +00:00
wiz
c1bf91bf36
Fix typo in Xref.
2006-03-23 20:15:49 +00:00
christos
fbdfb6fbf0
Coverity CID 2753: Free the correct variable.
2006-03-22 16:35:44 +00:00
christos
bd5a805fc3
fix compile problem.
2006-03-22 15:45:16 +00:00
christos
86bc6ef985
Coverity CID 786: Avoid NULL dereference.
2006-03-22 02:25:44 +00:00
christos
9a02e676ef
Coverity CID 1301: Return early if we could not open /dev/null
2006-03-22 02:23:11 +00:00
christos
7ef824757b
Coverity CID 1593: Plug memory leak
2006-03-22 02:21:20 +00:00
pavel
d8e5c31820
Clarify and correct the description of the -R (Record Route) flag.
...
Reviewed by jnemeth, whith help from him.
2006-03-21 22:54:46 +00:00
christos
aa1540d7a7
Coverity CID 2742: Avoid NULL deref.
2006-03-21 21:50:44 +00:00
christos
b771b70f76
Coverity CID 1601: Fix memory leak.
2006-03-21 21:43:03 +00:00
christos
22eda87ac9
Coverity CID 1603: Fix memory leak.
2006-03-21 21:41:00 +00:00
christos
0c9dfbbbdf
Coverity CID 1688: Fix memory leak.
2006-03-21 21:37:34 +00:00
christos
1f5c810a97
Coverity CID 782: Don't dereference NULL was not going to happen, but:
...
1. return error instead of the trashed errno.
2. don't return -1, but return ENAMETOOLONG.
3. eliminate unused code.
2006-03-21 21:34:01 +00:00
christos
7067dcb9a4
Always check the results of getmntopts() and free them.
2006-03-21 21:11:41 +00:00
pavel
c38d26c2d6
Bump date, requested by wiz.
2006-03-21 09:54:12 +00:00
pavel
104eb3fa9f
-I does work for unicast pings too (it sets the source address).
...
With some language help from dsl.
Reviewed by jnemeth.
2006-03-21 09:15:53 +00:00
christos
db80529cf2
Delete an obvious free(NULL) pointed out by erh.
2006-03-20 22:44:25 +00:00
christos
731d9b0c04
Coverity CID 2305: Fix memory leak.
2006-03-20 01:51:54 +00:00
christos
ef75a584c1
Coverity CID 2301: FIx memory leak.
2006-03-20 01:45:12 +00:00
christos
4b15f35af4
Coverity CID 2302: Free fat if fatal error to avoid leak.
2006-03-20 01:42:47 +00:00
christos
74f7dc651d
Coverity CID 2299: Fix memory leak.
2006-03-20 01:37:10 +00:00
christos
16f27d8161
Coverity CID 2298: Fix memory leak.
2006-03-20 01:34:16 +00:00
christos
3401a36160
Coverity CID 2074: Fix memory leak.
2006-03-20 01:30:34 +00:00
christos
635d729786
Coverity CID 1745: Fix memory leak.
2006-03-20 01:27:44 +00:00
christos
e5919d97fc
Coverity CID 1078: Add assertion check for NULL pointer.
2006-03-20 01:25:14 +00:00
christos
0794bfc81d
Coverity CID 2551: Don't use LIST_FOREACH() if you are going to free the
...
current element (bp) in the body of the loop; the foreach does bp = bp->next;
2006-03-20 01:20:55 +00:00
christos
db7722d2a7
Coverity CID 774: Don't increment a pointer *before* testing it for NULL!
2006-03-20 01:06:07 +00:00
christos
9871eb575d
Coverity CID's 1853, 1852, 1851: Plug memory leaks.
2006-03-20 01:00:34 +00:00
christos
25207a2398
Coverity CID 1203: Check return code of b64_ntop().
2006-03-20 00:53:39 +00:00
dan
1fcee3db59
close fp in several error paths, closing Coverity CIDs 1690, 1692.
...
"go" by go.
2006-03-19 01:57:11 +00:00
christos
55303a4a4b
Coverity CID 2307: Possible memory leak.
2006-03-18 20:25:28 +00:00
christos
f04c9de45b
Coverity CID 2306: Possible memory leak.
2006-03-18 20:23:51 +00:00
christos
5ac5bc844b
Coverity CID 1079: Possible NULL deref.
2006-03-18 20:21:50 +00:00
christos
704b63146c
Coverity CID 1080: Possible NULL deref.
2006-03-18 20:20:31 +00:00
christos
6672211d0f
Coverity CID 2432: Dereference before NULL check.
2006-03-18 19:55:49 +00:00
dsl
57c63d8912
Avoid indexing beyond the end of a malloced array.
...
Rework loop to be less confusing.
Coverty 519 made me read this code, but this isn't the 'bug' it found.
2006-03-18 12:48:35 +00:00
dsl
46b640e7c6
Coverty 521: fclose() temporary file used when editing label.
2006-03-18 11:38:59 +00:00
christos
6edcc275a1
Coverity CID 2297: Fix memory leak.
2006-03-18 09:51:08 +00:00
dsl
df7e187ccb
Appease Coverty CID 7449. Avoid close(-1) in error path.
2006-03-18 08:36:50 +00:00
perseant
16cb5d93b2
Make it compile again.
2006-03-17 19:24:08 +00:00
dsl
87f04837fb
Fix build breakage, split assignment and test for ease of reading.
2006-03-17 19:18:33 +00:00
christos
2044d4f590
Coverity CID 2671: Fix use of ifp after free.
2006-03-17 16:58:09 +00:00
hubertf
2b40d43066
Fix minor ressource leak
...
Coverity CID 1855
OK'd by thorpej
2006-03-17 16:14:48 +00:00
rumble
e948e1b17f
Check for allocation failures in malloc, calloc, realloc, asprintf, and
...
vasprintf and try to handle them.
2006-03-17 15:53:46 +00:00
rumble
e973f66640
Gracefully handle out of memory condition.
2006-03-17 14:50:44 +00:00
elad
6ec9e1c359
Proper bounds check, found by Coverity, CID 1468.
2006-03-17 13:58:27 +00:00
erh
e1806cf352
Fix Coverity issue 1579. Check retval from getmntopts(). Use freemntopts().
2006-03-17 06:51:00 +00:00
chris
4727225848
Fix case where argv wasn't returned or freed.
...
This fixes Coverity CID 2023.
While here also return NULL if the malloc fails.
2006-03-17 02:48:29 +00:00
elad
21831d5e1d
Fix an off-by-one found by Coverity, CID 1456.
...
I haven't looked, but I suggest security-officer@ looks into it to see if
this may be exploited passively?
2006-03-17 02:31:03 +00:00
hubertf
f500b89c3d
Free some allocated memory in the failure case when trying to
...
fetch the panic string.
Fixes Coverity CID 1856.
2006-03-17 01:45:51 +00:00
jnemeth
61f477b7e3
PR/31531: Takahiro Kambe: shutdown(8) quietly exit if execed from login shell
2006-03-07 22:19:55 +00:00
christos
421a9c133c
add the 3 opencrypto sysctls.
2006-03-06 00:51:48 +00:00
simonb
3204463045
We link against libl and liby, so depend on them too.
2006-02-25 11:57:52 +00:00
wiz
5d1e8b2745
Fix some typos.
2006-02-25 02:28:55 +00:00
christos
4738a03371
remove vinum reference.
2006-02-25 01:56:41 +00:00
christos
e241178d90
mark vinum as obsolete.
2006-02-25 01:55:00 +00:00
christos
1b49426ea4
remove vinum
2006-02-25 01:31:02 +00:00
wiz
1ad8067cb3
Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
...
forwarded by jmc@openbsd.
2006-02-25 00:58:34 +00:00
jmcneill
8e45f8abca
Add the ability to control the splash screen.
...
wsconsctl -d -w splash.enable=<1|0> to toggle the splash screen, and
wsconsctl -d -w splash.progress=1 to update the splash animation
2006-02-18 19:35:11 +00:00
lukem
8c09644630
* The kernel's struct ccd_softc has extra structure members over the
...
userland version; provide another ccd global variable (ccd_softc_elemsize)
containing the kernel's size, and use that it ccdconfig(8) to convert the
kernel's ccd_softc into userland versions.
Fixes 'ccdconfig -g'.
* Use DISKUNIT() instead of home-grown cruft to determine the `N' of "ccdN".
Fixes 'ccdconfig -g ccd1'.
* Use (void *) instead of (char *) in the calls to kvm_read().
XXX: ccd could be converted from nlist to sysctl. "Someone else's yak shave".
2006-02-16 23:25:18 +00:00
dyoung
6c1041b8b7
So that we can build a full-featured fdisk cross-tool with -DBOOTSEL,
...
condition the definition of DEFAULT_BOOTxxx variables and SCAN_xxx
on defined(BOOTSEL), instead of defined(__i386__) || defined(__x86_64__).
While I'm here, only build get_diskname in the same conditions as
get_geometry is built, since only the latter calls the former.
2006-02-14 04:48:15 +00:00
chs
899d1b31b2
convert "magiclinks" from a per-fs mount option to a system-wide sysctl.
...
as discussed on tech-kern quite some time ago.
2006-02-12 01:32:06 +00:00
christos
3d8d9aa461
define __POOL_EXPOSE.
2006-02-11 05:49:48 +00:00
christos
238f1027f9
detect integer overflow differently. previous change broke negative sysctl
...
values.
2006-02-08 18:13:56 +00:00
reinoud
7514b43102
Fix 3 more spelling errors and make it pass `spell -b'
2006-02-06 11:45:50 +00:00
christos
404831da9c
PR/17441: John F. Woods: integer sysctl does not accept numbers > 0x7fffffff
...
Use unsigned int in the range comparison, and use strerror() instead of
home brewed error strings.
2006-02-05 22:42:55 +00:00
jmmv
c799a9c4c0
Style fixes:
...
- Use EXIT_SUCCESS/EXIT_FAILURE where appropriate.
- Cut long lines.
- Properly indent continuation of lines.
- Sort includes.
- Replace u_int with unsigned int.
- Remove parenthesis around return values.
- Add blank line at the beginning of functions without local parameters.
- Cast *printf calls to void.
2006-02-05 18:11:46 +00:00
jmmv
2df378f966
Fix two pastos in the code to set 'samplerate'.
2006-02-05 17:45:06 +00:00
jmmv
8b589aee17
Add support to automatically repeat mouse button events in wsmouse(4) and
...
change wsconsctl(4) so that this is configurable.
This is specially useful for mice that provide page up/down buttons instead
of a real wheel and that do not send events repeatedly from the hardware.
(E.g.: Logitech Marble Mouse.)
No objections in tech-kern@.
2006-02-05 17:38:33 +00:00
wiz
82924459cb
Use more markup, fix xref, serial comma, other misc. fixes.
2006-02-04 20:10:53 +00:00
wiz
e1a202b1cb
Bump date for security.*
2006-02-04 18:37:58 +00:00
wiz
298f5a67e2
New sentence, new line; sort SEE ALSO; other minor improvements
2006-02-04 18:35:49 +00:00
riz
288025ff2a
Bump date, use "file system" consistently, no hyphen in "soft
...
dependencies", and sort options under -o.
2006-02-03 22:50:21 +00:00
riz
efb16065b2
Note that softdep and async options can't be used together. From
...
Dheeraj S in PR#32211, wording and formatting changes by me.
2006-02-03 22:34:11 +00:00
snj
52d8744177
Fix two spelling errors and a typo. From Chris Tribo in PR misc/32715.
2006-02-03 08:28:39 +00:00
christos
1098ee8a76
expose a_num.
2006-02-02 23:42:00 +00:00
christos
ae7a5ee5fc
- pass lint
...
- check errors
- use EXIT_FOO consistently
- use the fattr.h functions, don't duplicate the code
2006-02-02 23:41:43 +00:00
elad
81ed970f39
- make use of the recently added mode_bits for security.setid_core.mode;
...
- document setid_core variables.
2006-02-02 18:00:07 +00:00
reinoud
0400433f3f
Note the support for harddisc partitions and vnd devices and notify users
...
of the problems that could arise with mapping images of UDF file systems
when using vnd with respect to the sector size.
2006-02-02 16:45:06 +00:00
xtraeme
c53b38d234
KNF
2006-02-02 16:25:46 +00:00
reinoud
85b5a27e76
Crosslink mount(8) with mount_udf(8)
2006-02-02 16:24:09 +00:00