freebsd-nq/sbin
Peter Wemm 428fb2dd11 Fix PR 1607, hopefully without breaking the PR 5208 fixes.
umount() was trying to stat() the mountpoint, this would fail if the
mountpoint was a NFS mountpoint, and the fallback code would try and pass
a hostname:/dir path as the mountpoint to unmount(2), which would fail.

This whole stat() of the name supplied on the command line business is
trouble as it'll wedge on a hung NFS mount.

I'm not entirely sure why we are not simply looking up both arguments
in the mount table and doing the right thing without accessing the
filesystem.  It seems that we're going to a lot of trouble to allow
mountpoints on symlinks and other wierd things.

PR: 1607
1998-05-11 07:38:42 +00:00
..
adjkerntz Implement Helbig idea of offset calculation reducing mktime() calls 1998-04-11 21:18:55 +00:00
badsect Remove Xref to format(8) which does not exist. 1997-10-15 17:33:47 +00:00
bsdlabel Fixed annoying warning for unused sccsid. 1998-02-24 01:36:58 +00:00
ccdconfig Properly drop group privs to open file names specified by the user. 1997-12-30 05:13:21 +00:00
clri Import Lite2's src/sbin, except for XNSrouted and routed. All relevant 1997-07-02 00:25:26 +00:00
comcontrol Use .An/.Aq. 1998-03-19 07:47:10 +00:00
cxconfig Show the real revision date and not the date that this 1997-06-23 04:03:49 +00:00
disklabel Fixed annoying warning for unused sccsid. 1998-02-24 01:36:58 +00:00
dmesg compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 03:33:12 +00:00
dset Many places in the code NULL is used in integer context, where 1997-09-18 14:08:40 +00:00
dump Fix minor typo. 1998-05-10 16:35:31 +00:00
dumpfs Check bytes read to prevent random error message. 1998-04-20 14:09:40 +00:00
dumpon compare return value from getopt against -1 rather than EOF, per the final 1997-03-29 03:33:12 +00:00
fdisk Add NTFS partition type. 1998-03-29 23:41:51 +00:00
fsck Guess the position of the drive number in the device name better so 1998-04-07 12:43:57 +00:00
fsck_ffs Guess the position of the drive number in the device name better so 1998-04-07 12:43:57 +00:00
fsck_ifs Guess the position of the drive number in the device name better so 1998-04-07 12:43:57 +00:00
fsdb opt_diagnostic.h isn't needed anymore. 1998-02-06 22:31:14 +00:00
fsirand .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
i386 Add NTFS partition type. 1998-03-29 23:41:51 +00:00
ifconfig Make 'ifconfig -l ether' only list Ethernet interfaces. This is 1998-03-19 20:58:45 +00:00
init Don't assume sigset_t and int are equivalent. 1998-03-02 23:19:29 +00:00
ipf Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipfstat Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipfw When ipfw reads its rules from an input file, the optind variable is 1998-04-22 06:20:20 +00:00
ipmon Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
ipnat Initial bmake scaffolding for ipfilter userland stuff. 1998-03-21 13:53:18 +00:00
kldload .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
kldstat .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
kldunload .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
ldconfig Removed /etc/ld.so.conf reference from FILES section (people get 1998-01-01 02:31:47 +00:00
md5 Fix a few style nits from previous commit. 1997-12-29 14:05:49 +00:00
mknod Use err(3). 1997-06-16 06:35:23 +00:00
modload .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
modunload .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
mount New mount option nosymfollow. If enabled, the kernel lookup() 1998-04-08 18:31:59 +00:00
mount_cd9660 .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
mount_ext2fs Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_ifs New mount option nosymfollow. If enabled, the kernel lookup() 1998-04-08 18:31:59 +00:00
mount_msdos Add more info about special characters in dos2unix/unix2dos tables 1998-03-01 08:41:05 +00:00
mount_msdosfs Add more info about special characters in dos2unix/unix2dos tables 1998-03-01 08:41:05 +00:00
mount_nfs Mention the 2GB NFS v2 filesize limit. 1998-05-01 13:52:17 +00:00
mount_null Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_nullfs Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_portal Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_portalfs Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_std Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_umap Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_umapfs Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_union Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mount_unionfs Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
mountd Converted to Lite2 mount interface - use vfc_typenum from the 1998-01-20 15:22:27 +00:00
natd Fix incorrect flag spec 1998-04-18 10:05:38 +00:00
newfs Add warning about root-fs blocksize expectations. 1998-04-26 17:44:23 +00:00
nextboot Spelling police. 1997-04-23 04:46:38 +00:00
nfsd Don't give examples or use the depreciated usage to nfsd 1998-05-01 13:45:04 +00:00
nfsiod Removed definition of _NEW_VFSCONF. The new vfsconf interface is now 1998-01-20 10:40:18 +00:00
nologin An odd merge from 2.2 to -current. Somehow that 2.2 nologin.5 1997-03-03 06:47:27 +00:00
nos-tun Add usage() and rcsid. Getopt() returns -1 not EOF. Remove unused #includes. 1998-05-05 06:24:15 +00:00
ping If ping write fails with short packet count, the 1998-04-15 19:55:14 +00:00
quotacheck Guess the position of the drive number in the device name better so 1998-04-07 12:43:57 +00:00
reboot say a few words about the -b option. 1998-04-26 18:15:38 +00:00
restore Well, nobody objected, so here's my -u (unlink) flag to restore. 1998-05-09 05:23:02 +00:00
route style(9) corrections 1997-12-26 23:28:17 +00:00
routed Problem whith "subnet=" statement in /etc/gateways. 1998-04-19 17:53:16 +00:00
savecore Pickup _time_second instead of _time 1998-03-30 10:10:29 +00:00
scsi Use err(3). Change exit(-1), and make exit values equal to 1 when errors. 1998-01-12 07:57:57 +00:00
scsiformat set timeout to 4 hours, large disks take a long time to low level format. 1998-03-09 21:54:20 +00:00
shutdown Pass an actual empty environment to execle() as per POSIX rather than 1998-01-10 20:11:06 +00:00
slattach Remove the casts on signal() returns and compare the returned value 1998-02-20 07:28:50 +00:00
spppcontrol .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq. 1998-03-19 07:46:04 +00:00
startslip Remove unused include files 1997-12-22 13:46:08 +00:00
swapon Revert last commit and SEE ALSO pstat(8) instead. 1998-02-01 06:46:37 +00:00
sysctl Install sysctl in /sbin. It is used in some cases in network_pass1(), 1997-12-18 15:34:08 +00:00
tunefs Reviewed by: dyson@freebsd.org (john Dyson), dg@root.com (david greenman) 1998-03-08 09:59:44 +00:00
umount Fix PR 1607, hopefully without breaking the PR 5208 fixes. 1998-05-11 07:38:42 +00:00
Makefile Change noc-tun to nos-tun after Peter did the repository copy to cover 1998-04-12 10:44:24 +00:00
Makefile.inc Part one of a "fix-and-move". Init(8) had make macros declared here 1997-02-10 17:41:33 +00:00