volume: use the effective uid

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2022-07-14 09:55:16 +02:00
parent 8f3b2813dc
commit eee5fa8b8d
No known key found for this signature in database
GPG Key ID: 67E38F7A8BA21772

View File

@ -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")
}