aboutsummaryrefslogtreecommitdiffstats
path: root/share/libmsec.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/libmsec.py')
-rw-r--r--share/libmsec.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/libmsec.py b/share/libmsec.py
index e35214d..bcc3862 100644
--- a/share/libmsec.py
+++ b/share/libmsec.py
@@ -288,7 +288,7 @@ def enable_pam_wheel_for_su(arg):
return
members = ent[3]
if members == [] or members == ['root']:
- error(_('wheel group is empty'))
+ _interactive and error(_('wheel group is empty'))
return
su.exists() and (su.replace_line_matching('^auth\s+required\s+/lib/security/pam_wheel.so\s+use_uid\s*$',
'auth required /lib/security/pam_wheel.so use_uid') or \