diff options
author | Dave Reisner | 2014-08-21 14:48:12 +0200 |
---|---|---|
committer | Karel Zak | 2014-08-21 15:05:45 +0200 |
commit | fef4dfa1746a8fe35a878bf9753bfd76cfa7e247 (patch) | |
tree | 5d68fba2efd89267502a29db0f229b5cbab62532 /sys-utils/mountpoint.c | |
parent | libmount: use -t for type.subtype in helpers API (diff) | |
download | kernel-qcow2-util-linux-fef4dfa1746a8fe35a878bf9753bfd76cfa7e247.tar.gz kernel-qcow2-util-linux-fef4dfa1746a8fe35a878bf9753bfd76cfa7e247.tar.xz kernel-qcow2-util-linux-fef4dfa1746a8fe35a878bf9753bfd76cfa7e247.zip |
mountpoint: drop S_ISDIR check
Files can be mountpoints, too.
Diffstat (limited to 'sys-utils/mountpoint.c')
-rw-r--r-- | sys-utils/mountpoint.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys-utils/mountpoint.c b/sys-utils/mountpoint.c index cba5f0125..3919ab748 100644 --- a/sys-utils/mountpoint.c +++ b/sys-utils/mountpoint.c @@ -192,12 +192,6 @@ int main(int argc, char **argv) else { dev_t src; - if (!S_ISDIR(st.st_mode)) { - if (!quiet) - errx(EXIT_FAILURE, _("%s: not a directory"), spec); - return EXIT_FAILURE; - } - if ( dir_to_device(spec, &src)) { if (!quiet) printf(_("%s is not a mountpoint\n"), spec); |