Skip to content

Commit

Permalink
Merge pull request #438 from Zuplyx/fix-setgid
Browse files Browse the repository at this point in the history
Fix #437: Properly evaluate setgid property
  • Loading branch information
DanielThomas authored Feb 19, 2024
2 parents c915fd6 + a9c7e4e commit 44bd7fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class DebCopyAction extends AbstractPackagingCopyAction<Deb> {
Integer uid = (Integer) lookup(specToLookAt, 'uid') ?: task.uid ?: 0
String group = lookup(specToLookAt, 'permissionGroup') ?: task.permissionGroup
Integer gid = (Integer) lookup(specToLookAt, 'gid') ?: task.gid ?: 0
String setgid = lookup(specToLookAt, 'setgid') ?: task.setgid
Boolean setgid = lookup(specToLookAt, 'setgid') ?: task.setgid

int fileMode = dirDetails.mode
if (setgid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class RpmCopyAction extends AbstractPackagingCopyAction<Rpm> {
Directive directive = (Directive) lookup(specToLookAt, 'fileType') ?: task.fileType
String user = lookup(specToLookAt, 'user') ?: task.user
String group = lookup(specToLookAt, 'permissionGroup') ?: task.permissionGroup
String setgid = lookup(specToLookAt, 'setgid') ?: task.setgid
Boolean setgid = lookup(specToLookAt, 'setgid') ?: task.setgid
if (setgid) {
dirMode = dirMode | 02000
}
Expand Down

0 comments on commit 44bd7fd

Please sign in to comment.