diff --git a/build/files.c b/build/files.c index 599b069..916b249 100644 --- a/build/files.c +++ b/build/files.c @@ -1687,6 +1687,8 @@ static rpmRC addFile1(FileList fl, const char * diskPath, struct stat * statp) flp->fl_mode = fileMode; flp->fl_uid = fileUid; flp->fl_gid = fileGid; + if (S_ISDIR(fileMode)) + flp->fl_size = 0; flp->fileURL = xstrdup(cpioPath); flp->diskURL = xstrdup(diskPath);