diff options
Diffstat (limited to 'cmd/fscrypt/commands.go')
| -rw-r--r-- | cmd/fscrypt/commands.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/fscrypt/commands.go b/cmd/fscrypt/commands.go index 2f23a0f..2733890 100644 --- a/cmd/fscrypt/commands.go +++ b/cmd/fscrypt/commands.go @@ -353,7 +353,7 @@ func purgeAction(c *cli.Context) error { } if dropCachesFlag.Value { - if !util.IsUserRoot() { + if util.CurrentUserID() != 0 { return newExitError(c, ErrDropCachesPerm) } } |