NetBSD/sbin/dump
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
..
Makefile
dump.8 - implement -F, which indicates that files-to-dump is a regular file 2001-08-14 06:51:36 +00:00
dump.h s/filesystem/file system/ 2001-08-14 05:44:44 +00:00
dumprmt.c unifdef !__STDC__ (missed in previous) 2001-05-28 00:41:14 +00:00
ffs_inode.c remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap() 2001-08-17 02:18:46 +00:00
itime.c * improve parsing of file-systems-to-dump when a path is given: 2001-05-28 01:09:54 +00:00
main.c - implement -F, which indicates that files-to-dump is a regular file 2001-08-14 06:51:36 +00:00
optr.c Patch to drop setgid tty privs until forking for operator notification 2001-08-08 16:49:54 +00:00
pathnames.h
rcache.c knf to ansi 2001-05-27 14:17:56 +00:00
tape.c s/filesystem/file system/dump.h 2001-08-14 05:44:15 +00:00
traverse.c s/filesystem/file system/dump.h 2001-08-14 05:44:15 +00:00
unctime.c knf to ansi 2001-05-27 14:17:56 +00:00