mountpoint: drop S_ISDIR check

Files can be mountpoints, too.
This commit is contained in:
Dave Reisner 2014-08-21 08:48:12 -04:00 committed by Karel Zak
parent e4ea53de0b
commit fef4dfa174
1 changed files with 0 additions and 6 deletions

View File

@ -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);