NetBSD/usr.sbin
lukem 1b81d6353d remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right.  invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B"  to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.
2001-08-17 02:18:46 +00:00
..
ac Xref login 1, not 8. 2001-04-03 11:23:35 +00:00
accton
altq $NetBSD$ 2001-08-16 07:48:08 +00:00
amd Regenerated for am-utils 6.0.6. 2001-05-13 18:11:56 +00:00
apm support multiple batteries (currently only # of batteris is visible - 2001-07-22 16:05:17 +00:00
apmd Negative exit code cleanup: Replace exit(-x) with exit(x). 2001-04-06 11:13:45 +00:00
arp remove spurious newline in an error message. 2001-07-29 21:24:57 +00:00
bad144
bind disable DNSSEC build, for two reasons. (1) restrictive license 2001-05-27 04:39:40 +00:00
bootp ether_hostton(3), not ether_hton(3) (thanks, Klaus!) 2001-04-11 19:32:25 +00:00
catman Don't discard all the hard work of setdefentries() and uniquepath(). 2001-05-20 22:05:30 +00:00
chown
chroot strtol -> strtoul because we use an unsigned type (uid_t/gid_t) 2001-07-14 21:56:45 +00:00
chrtbl use fparseln() 2001-03-17 20:43:55 +00:00
cnwctl
config Add hooks to allow toolchain bits to be reachover-built at the top level. 2001-08-14 10:18:26 +00:00
cron make consistent escape sequence handling 2001-08-13 06:54:58 +00:00
dbsym Fix date. 2001-04-11 19:35:31 +00:00
dev_mkdb Removed two debug messages commited by mistake. Sorry about this. 2001-07-15 17:27:32 +00:00
dhcp dhcpd no longer needs the OS_VERSION define. 2001-08-16 18:29:20 +00:00
diskpart
dumpfs remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap() 2001-08-17 02:18:46 +00:00
dumplfs Merge the short-lived perseant-lfsv2 branch into the trunk. 2001-07-13 20:30:18 +00:00
edquota
eeprom
envstat
eshconfig
faithd faith(4) is now documented in RFC3142. 2001-06-30 01:01:36 +00:00
greconfig Fix date, xrefs and whitespace. 2001-04-11 19:36:59 +00:00
grfconfig
grfinfo Minor fixes. 2001-06-05 11:40:04 +00:00
gspa withough -> without 2001-06-13 10:45:57 +00:00
hilinfo
hprop
ifmcstat drop setgid. suggested by deraadt 2001-06-26 17:10:33 +00:00
inetd Negative exit code cleanup: Replace exit(-x) with exit(x). 2001-04-06 11:13:45 +00:00
iopctl Better argument checking. 2001-08-04 16:55:46 +00:00
iostat Uppercase cpu. 2001-07-08 18:19:16 +00:00
ipf add -lcurses 2001-03-13 16:30:13 +00:00
isdn withough -> without 2001-06-13 10:45:57 +00:00
iteconfig
kadmin
kdc
kgmon
kstash
ktutil
kvm_mkdb seperate -> separate 2001-07-22 13:33:58 +00:00
lastlogin
link
lpr Add -W parameter to lpd to disable check for a reserved port, 2001-08-11 01:04:57 +00:00
mailwrapper Remove trailing dot from .Nd, and a bogus comment line (probably left 2001-06-08 23:57:43 +00:00
map-mbone updated copyright notice from Xerox. via openbsd 2001-08-01 16:45:28 +00:00
mdconfig
mdsetimage Fix typo in previous. (damn vi.) 2001-06-21 22:58:36 +00:00
memswitch
mld6query getopt(3): EOF -> -1. 2001-05-07 14:00:22 +00:00
mlxctl Nits. 2001-04-17 13:32:39 +00:00
mopd moptrace(1), not (8). Whitespace fixes. 2001-04-05 11:50:06 +00:00
mountd Don't allow -mask for v6 addresses, otherwise there could be confusion 2001-04-24 15:04:27 +00:00
mrinfo updated copyright notice from Xerox. via openbsd 2001-08-01 16:45:28 +00:00
mrouted copyright clarification. via openbsd 2001-08-02 03:41:42 +00:00
mtrace Negative exit code cleanup: Replace exit(-x) with exit(x). 2001-04-06 11:13:45 +00:00
mtrace6 Fix date and whitespace nits. 2001-04-26 23:19:50 +00:00
mtree - add parsetype() (a la parsekey()) to parse the "type=xxx" arg. this improves 2001-07-18 04:51:54 +00:00
ndbootd Merge in ndbootd-0.5. 2001-06-13 21:38:30 +00:00
ndp sync with latest kame code. ndp -i won't print info for yet-to-be-initialized 2001-07-23 14:47:43 +00:00
netgroup_mkdb
nfsd
ntp Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
pkg_install Add a -n switch to show the packages "needed" by a package (i.e. the 2001-08-13 20:08:58 +00:00
pppd follow kame p2p interface management rule. use /128 when we specify 2001-07-21 02:28:06 +00:00
pstat Couple of nits. 2001-07-09 17:46:39 +00:00
pvcsif getopt(3): EOF -> -1. 2001-05-07 14:00:22 +00:00
pvctxctl getopt(3): EOF -> -1. 2001-05-07 14:00:22 +00:00
pwd_mkdb Do not try to reference dbm(3) 2001-07-06 18:07:15 +00:00
quot Xref getbsize(3). 2001-07-08 15:34:13 +00:00
quotacheck remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap() 2001-08-17 02:18:46 +00:00
quotaon
racoon include version number into binary to help diagnosis 2001-08-02 15:27:21 +00:00
rarpd
rbootd
rdate
repquota Enlarge inode fields (for quotas with more than 99999 inodes). 2001-03-20 13:38:26 +00:00
rip6query getopt(3): EOF -> -1. 2001-05-07 14:00:22 +00:00
rmt Improve usage of `comprise' according to Webster and misc/10893 2001-05-06 12:29:18 +00:00
route6d need va_start/end for every vfprintf(). from markus@openbsd. sync with kame 2001-06-13 04:31:52 +00:00
rpc.bootparamd Improve error messages; instead of "getfile failed", now: 2001-04-11 06:21:49 +00:00
rpc.lockd receive, not recieve 2001-06-12 15:17:10 +00:00
rpc.pcnfsd
rpc.statd
rpc.yppasswdd
rpcbind For the local case, return serv_uaddr in addrmerge, not the address 2001-04-30 00:36:07 +00:00
rtadvd prevent overflow of lifetime value. sync with kame 2001-06-03 09:26:04 +00:00
rtsold sync with kame. 2001-07-09 06:04:28 +00:00
rwhod
sa seperate -> separate 2001-07-22 13:33:58 +00:00
screenblank
sendmail
sesd
sliplogin Add section to a .Xr. 2001-04-03 11:28:44 +00:00
slstats
spray
sup `accessible' only has one `a'. 2001-06-19 12:52:20 +00:00
sushi fgetln() does not \0-terminate the result. 2001-08-03 09:18:58 +00:00
syslogd Put pidfile after daemonize. This would fix newsyslog(8) error. 2001-07-19 00:15:32 +00:00
tadpolectl Add arch to Dt. 2001-04-21 14:45:12 +00:00
tcpdchk have sshd listed in use_libwrap[]. 2001-06-30 00:56:28 +00:00
tcpdmatch Comment out reference to tlid.conf in the SEE ALSO section. 2001-04-03 12:05:12 +00:00
tcpdump switch to use src/dist/tcpdump. source code has been checked and the new 2001-06-25 19:41:19 +00:00
timed Add sections to xrefs. Whitespace fixes. 2001-04-05 11:53:46 +00:00
traceroute Symmetric has one s and two m's. 2001-06-18 11:23:00 +00:00
traceroute6 getopt(3): EOF -> -1. 2001-05-07 14:00:22 +00:00
trpt copy necessary variables from sys/netinet/tcp_debug.c. 2001-07-09 07:54:59 +00:00
trsp
unlink
usbdevs
user do not make "useradd foo -s bar" to ignore "-s bar" silently. require 2001-06-23 02:42:32 +00:00
videomode
vipw
vnconfig
wiconfig Big-endian support. 2001-05-16 10:45:36 +00:00
wsconscfg Missing space in usage(); from OpenBSD. 2001-06-25 08:47:29 +00:00
wsfontload s/width/height/ in the description of -h option. 2001-08-12 23:51:15 +00:00
ypbind
yppoll
ypserv - Filter out the YP_ keys from mail.aliases. How did this ever work? 2001-08-06 18:28:19 +00:00
ypset
zdump
zic
Makefile do not visit mtrace6 2001-06-03 06:09:10 +00:00
Makefile.inc