summaryrefslogtreecommitdiff
path: root/lib/fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fsm.c')
-rw-r--r--lib/fsm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/fsm.c b/lib/fsm.c
index d78c8eafd..b2e5fe525 100644
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -1022,7 +1022,8 @@ setmeta:
/* Only follow safe symlinks, and never on temporary files */
if (fp->suffix)
flags |= AT_SYMLINK_NOFOLLOW;
- fd = fsmOpenat(di.dirfd, fp->fpath, flags, 0);
+ fd = fsmOpenat(di.dirfd, fp->fpath, flags,
+ S_ISDIR(fp->sb.st_mode));
if (fd < 0)
rc = RPMERR_OPEN_FAILED;
}