From bcddfd461de29522455be38757b4739cd24c152a Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Mon, 8 Jun 2020 06:38:33 -0400 Subject: [PATCH] blkpack: Remove usage of nonstandard d_type The man page says it's not always available and it caused problems under some FSes. The condition is not needed in the context of blk/, let's scrap it. --- tools/blkpack.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/tools/blkpack.c b/tools/blkpack.c index b42126f..52b9b34 100644 --- a/tools/blkpack.c +++ b/tools/blkpack.c @@ -29,9 +29,6 @@ int main(int argc, char *argv[]) if ((strcmp(ep->d_name, ".") == 0) || strcmp(ep->d_name, "..") == 0) { continue; } - if (ep->d_type != DT_REG) { - continue; - } int blkid = atoi(ep->d_name); if (blkid >= blkcnt) { int newcnt = blkid+1;