From 24ad8291bbcdb523f1aa58d75e29f9ffeb484b52 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 1 Aug 2012 12:06:45 +0300 Subject: [PATCH] Dont bother asking libmagic about directories - There's no (relevant) additional information to be gained from passing directories to libmagic and we already have this info available in the file mode. This permits nice and easy handling of %ghost directories (related to RhBug:839656) --- build/rpmfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/rpmfc.c b/build/rpmfc.c index f5082e3..94cbd4c 100644 --- a/build/rpmfc.c +++ b/build/rpmfc.c @@ -954,7 +954,7 @@ rpmRC rpmfcClassify(rpmfc fc, ARGV_t argv, rpm_mode_t * fmode) case S_IFBLK: ftype = "block special"; break; case S_IFIFO: ftype = "fifo (named pipe)"; break; case S_IFSOCK: ftype = "socket"; break; - case S_IFDIR: + case S_IFDIR: ftype = "directory"; break; case S_IFLNK: case S_IFREG: default: -- 2.7.4