Skip to content

Commit

Permalink
dd: fix permissions on extracted files (#1222056)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wgwoods committed Jun 24, 2015
1 parent 6d0f0d1 commit 1f14a36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/dd/rpmutils.c
Expand Up @@ -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);
Expand Down

0 comments on commit 1f14a36

Please sign in to comment.