summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2002-08-18 21:05:47 +0000
committerkrw <krw@openbsd.org>2002-08-18 21:05:47 +0000
commitd4772e4615454fea4016b48944b50519fb793dc9 (patch)
tree79fe737c54c3c9d9ce79222a7b3fba3ea416f39d /lib/libc
parentordered list here (diff)
downloadwireguard-openbsd-d4772e4615454fea4016b48944b50519fb793dc9.tar.xz
wireguard-openbsd-d4772e4615454fea4016b48944b50519fb793dc9.zip
Fix various mount point problems:
1) Fix 'already mounted' checking so a mount point name can be the same as the leading substring of a previously specified mount point. Now you can specify /usr after /usr/obj, and since the mount points are sorted before writing to fstab, it should work. This also fixes the error message generated when a requested mount point matches the leading substring of multiple mount points. e.g. trying to mount '/' again. 2) Fix fstab sorting so that it works across all initialized disks, not just on a disk by disk basis. 3) For additional paranoia during multiple disk installs, unset _partitions, _psizes, and _mount_points before processing a disk. Eliminate individual blanking of _mount_points entries. 4) Shorten/simplify logic by storing ${DISK} in _partitions entries rather than always adding it back in when referencing _partitions. 5) Rework verbiage a bit, eliminating the duplicate display of configured devices before making new filesystems. Some code clean up, eliminating '{}'s, better loops, ifs, etc. Appox. 67 bytes net bloat.
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions