summaryrefslogtreecommitdiffstats
path: root/src/tools/selinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/selinux.c')
-rw-r--r--src/tools/selinux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/selinux.c b/src/tools/selinux.c
index 27cc56803..647fc17a5 100644
--- a/src/tools/selinux.c
+++ b/src/tools/selinux.c
@@ -324,7 +324,7 @@ int set_seuser(const char *login_name, const char *seuser_name)
}
ret = semanage_commit(handle);
- if (ret != 0) {
+ if (ret < 0) {
DEBUG(1, ("Cannot commit SELinux transaction\n"));
ret = EIO;
goto done;
@@ -394,7 +394,7 @@ int del_seuser(const char *login_name)
}
ret = semanage_commit(handle);
- if (ret != 0) {
+ if (ret < 0) {
DEBUG(1, ("Cannot commit SELinux transaction\n"));
ret = EIO;
goto done;