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
elad
202872db03
add support for parsing file mode bits.
...
when printed, you'll see something like "0600 (rw-------)", like the
ls output. when reading input you can either specify octal mode (0600)
or chmod-like (u=rw).
ideas from atatat@ and kjk@; okay and lots of help from atatat@.
2006-02-02 16:23:25 +00:00
reinoud
21a48c8e8b
Remove false notion about harddisc partition and vnd support since it has
...
been added since.
2006-02-02 16:11:25 +00:00
xtraeme
3d5d61e01c
Fix NetBSD tag.
2006-02-02 15:48:24 +00:00
reinoud
09457a8a6e
Initial import of a UDF file system implementation for NetBSD.
...
Finally the logic glue and the set distribution lists modifications.
2006-02-02 15:26:32 +00:00
reinoud
c2f693f4f5
Initial import of a UDF file system implementation for NetBSD.
...
Add UDF file system mounter.
2006-02-02 15:21:29 +00:00
wiz
cc07c6e988
Use default option order (AaBbCc...).
2006-01-29 22:11:10 +00:00
dsl
c28e0ae4af
Byteswap the constant MBR_{BS_}MAGIC throughout, should genetate better code.
...
Except that non all architectures have that optimisation :-(
2006-01-29 12:55:16 +00:00
dsl
79bd2ddb02
Update/rewrite to match reality and in a muchmore succinct format.
2006-01-29 00:04:26 +00:00
is
d155cb6cd4
Print the INET netmask if it is non-contiguous.
2006-01-26 11:35:09 +00:00
christos
81a178c561
PR/32632: Yves-Emmanuel JUTARD: Improvment suggestion in 'route' display.
...
Add a new -S flag that prints a space for missing flags.
2006-01-25 16:29:10 +00:00
christos
b7f3395036
PR/32629: Yves-Emmanuel JUTARD: Type errors in sbin/route/route.c, another
...
u_char/char conflict.
2006-01-25 16:19:50 +00:00
christos
86b43a935f
PR/32628: Yves-Emmanuel JUTARD: Missing cast in sbin/ifconfig/ifconfig.c,
...
strcasecmp needs char * not u_int8_t *.
2006-01-25 16:08:49 +00:00
simonb
e37b3f410c
Use 64-bit arithmetic to calculate fragsperinodeblk, avoiding 32-bit
...
overflows for large values of "-i bytes-per-inode".
2006-01-21 12:32:14 +00:00