summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src')
-rwxr-xr-xcpp/src/tests/ais_check2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/tests/ais_check b/cpp/src/tests/ais_check
index 1481cf5bab..92eaa9dd39 100755
--- a/cpp/src/tests/ais_check
+++ b/cpp/src/tests/ais_check
@@ -28,7 +28,7 @@ ps -u root | grep 'aisexec\|corosync' >/dev/null || {
# Execute command with the ais group set if user is a member.
with_ais_group() {
- if id -nG | grep '\<ais\>' >/dev/null; then sg -c "$*"
+ if id -nG | grep '\<ais\>' >/dev/null; then sg ais -c "$*"
else "$@"
fi
}