Skip to content

Commit

Permalink
Fix: properly evaluate setgid property
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuplyx committed Feb 19, 2024
1 parent c915fd6 commit a9c7e4e
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 a9c7e4e

Please sign in to comment.