Skip to content

Commit

Permalink
volume: use the effective uid
Browse files Browse the repository at this point in the history
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Aug 2, 2022
1 parent 8f3b281 commit eee5fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/volume/volume_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func verifyDirectoryPermission(path string, readonly bool) bool {

func TestSetVolumeOwnershipOwner(t *testing.T) {
fsGroup := int64(3000)
currentUid := os.Getuid()
currentUid := os.Geteuid()
if currentUid != 0 {
t.Skip("running as non-root")
}
Expand Down

0 comments on commit eee5fa8

Please sign in to comment.