From: Will Woods wwoods@redhat.com
We weren't applying the archive's permissions to newly-created files, so binaries weren't executable, etc.
This patch adds the missing chmod() call to do so.
Resolves: RHBZ#1222056 --- utils/dd/rpmutils.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/utils/dd/rpmutils.c b/utils/dd/rpmutils.c index 4f06d25..6d64917 100644 --- a/utils/dd/rpmutils.c +++ b/utils/dd/rpmutils.c @@ -405,6 +405,8 @@ int explodeDDRPM(const char *source, needskip = 0; } else { needskip = 0; + /* set permissions on the new file */ + chmod(filename+offset, fstat->st_mode); }
fclose(fdout);