stat shadows another stat variable. Remove this
variable, and directly check the result of getfscreatecon().
This commit is contained in:
parent
616ad5252d
commit
8d440a2a52
@ -31,6 +31,8 @@
|
|||||||
* lib/gshdow.c: list() is an external function. DO not shadow it
|
* lib/gshdow.c: list() is an external function. DO not shadow it
|
||||||
with a static function. The internal list() was renamed
|
with a static function. The internal list() was renamed
|
||||||
build_list().
|
build_list().
|
||||||
|
* lib/commonio.c: stat shadows another stat variable. Remove this
|
||||||
|
variable, and directly check the result of getfscreatecon().
|
||||||
|
|
||||||
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
|
2008-01-01 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -692,9 +692,7 @@ int commonio_close (struct commonio_db *db)
|
|||||||
}
|
}
|
||||||
#ifdef WITH_SELINUX
|
#ifdef WITH_SELINUX
|
||||||
if (db->scontext != NULL) {
|
if (db->scontext != NULL) {
|
||||||
int stat = getfscreatecon (&old_context);
|
if (getfscreatecon (&old_context) < 0) {
|
||||||
|
|
||||||
if (stat < 0) {
|
|
||||||
errors++;
|
errors++;
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user