]> granicus.if.org Git - shadow/commitdiff
stat shadows another stat variable. Remove this
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 14:01:34 +0000 (14:01 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Sat, 5 Jan 2008 14:01:34 +0000 (14:01 +0000)
variable, and directly check the result of getfscreatecon().

ChangeLog
lib/commonio.c

index d04f8c3e7d712bde175feac20ffa3b8f2412e08d..6c9062304a6b8742c97f0a56611937660cfe2765 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -31,6 +31,8 @@
        * lib/gshdow.c: list() is an external function. DO not shadow it
        with a static function. The internal list() was renamed
        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>
 
index 58b4b562a32e57a03527f52927b75e818e9e1921..672631fa18712977d930603c0e7eb34fc0d2ae53 100644 (file)
@@ -692,9 +692,7 @@ int commonio_close (struct commonio_db *db)
                }
 #ifdef WITH_SELINUX
                if (db->scontext != NULL) {
-                       int stat = getfscreatecon (&old_context);
-
-                       if (stat < 0) {
+                       if (getfscreatecon (&old_context) < 0) {
                                errors++;
                                goto fail;
                        }