Revision: 2890
http://selinux.svn.sourceforge.net/selinux/?rev=2890&view=rev
Author: ssmalley
Date: 2008-05-27 13:15:09 -0700 (Tue, 27 May 2008)
Log Message:
-----------
Make sure that error is only ever 0 or 1.
Modified Paths:
--------------
trunk/libselinux/utils/matchpathcon.c
Modified: trunk/libselinux/utils/matchpathcon.c
===================================================================
--- trunk/libselinux/utils/matchpathcon.c 2008-05-27 20:07:32 UTC (rev 2889)
+++ trunk/libselinux/utils/matchpathcon.c 2008-05-27 20:15:09 UTC (rev 2890)
@@ -116,7 +116,7 @@
} else {
security_context_t con;
int rc;
- error++;
+ error = 1;
if (notrans)
rc = lgetfilecon_raw(argv[i], &con);
else
@@ -135,7 +135,7 @@
}
}
} else {
- error += printmatchpathcon(argv[i], header, mode);
+ error |= printmatchpathcon(argv[i], header, mode);
}
}
matchpathcon_fini();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|