diff options
-rw-r--r-- | disk-utils/partx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/partx.c b/disk-utils/partx.c index ec48047c4..44d38fd0e 100644 --- a/disk-utils/partx.c +++ b/disk-utils/partx.c @@ -234,7 +234,7 @@ static int get_max_partno(const char *disk, dev_t devno) !strcmp(d->d_name, "..")) continue; #ifdef _DIRENT_HAVE_D_TYPE - if (d->d_type != DT_DIR) + if (d->d_type != DT_DIR && d->d_type != DT_UNKNOWN) continue; #endif if (strncmp(parent, d->d_name, strlen(parent))) |