diff options
author | Karel Zak <kzak@redhat.com> | 2007-05-25 11:09:44 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2007-05-25 11:18:37 +0200 |
commit | 8c61f43a4c2a17ee6ebf830bb5869569305f1eaa (patch) | |
tree | 12fa0318e340a6c87f721d07e3129a3238493363 /mount/umount.c | |
parent | baae33d0b3111e4f8fe3af0a4923049f346450a4 (diff) | |
download | util-linux-old-8c61f43a4c2a17ee6ebf830bb5869569305f1eaa.tar.gz |
mount: clean up getfs* (fstab.c) interface
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/umount.c')
-rw-r--r-- | mount/umount.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mount/umount.c b/mount/umount.c index 081f3127..b3100c9a 100644 --- a/mount/umount.c +++ b/mount/umount.c @@ -490,9 +490,9 @@ umount_file (char *arg) { then "mount /dev/sda4" followed by "umount /mnt/zip" used to fail. So, we must not look for file, but for the pair (spec,file) in fstab. */ - fs = getfsspecfile(mc->m.mnt_fsname, mc->m.mnt_dir); + fs = getfs_by_specdir(mc->m.mnt_fsname, mc->m.mnt_dir); if (!fs) { - if (!getfsspec (file) && !getfsfile (file)) + if (!getfs_by_spec (file) && !getfs_by_dir (file)) die (2, _("umount: %s is not in the fstab " "(and you are not root)"), |