summaryrefslogtreecommitdiff
path: root/cmd/podman/stats.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/stats.go')
-rw-r--r--cmd/podman/stats.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/stats.go b/cmd/podman/stats.go
index 181f5376c..0e1d2a9c6 100644
--- a/cmd/podman/stats.go
+++ b/cmd/podman/stats.go
@@ -64,7 +64,7 @@ func statsCmd(c *cli.Context) error {
return err
}
- if os.Getuid() != 0 {
+ if os.Geteuid() != 0 {
return errors.New("stats is not supported for rootless containers")
}