[systemd-commits] src/label.c TODO

Lennart Poettering lennart at kemper.freedesktop.org
Wed Apr 27 20:07:31 PDT 2011


 TODO        |    2 ++
 src/label.c |    8 ++++----
 2 files changed, 6 insertions(+), 4 deletions(-)

New commits:
commit b4bd51448fa8b7574e9a92af50b58da9bb0dfb5e
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Apr 28 05:06:48 2011 +0200

    label: don't print warning when we try ro relabel an non-existing file
    
    https://bugzilla.redhat.com/show_bug.cgi?id=698674

diff --git a/TODO b/TODO
index d5479b5..be96462 100644
--- a/TODO
+++ b/TODO
@@ -28,6 +28,8 @@ F15 External:
 
 Features:
 
+* plymouth.enable=0
+
 * introduce dbus calls for enabling/disabling a service
 
 * support notifications for services being enabled/disabled
diff --git a/src/label.c b/src/label.c
index 09ded64..43f6e89 100644
--- a/src/label.c
+++ b/src/label.c
@@ -90,14 +90,14 @@ int label_fix(const char *path, bool ignore_enoent) {
                         /* If the FS doesn't support labels, then exit without warning */
                         if (r < 0 && errno == ENOTSUP)
                                 return 0;
-
-                        /* Ignore ENOENT in some cases */
-                        if (r < 0 && ignore_enoent && errno == ENOENT)
-                                return 0;
                 }
         }
 
         if (r < 0) {
+                /* Ignore ENOENT in some cases */
+                if (ignore_enoent && errno == ENOENT)
+                        return 0;
+
                 log_full(security_getenforce() == 1 ? LOG_ERR : LOG_DEBUG,
                          "Unable to fix label of %s: %m", path);
                 r = security_getenforce() == 1 ? -errno : 0;



More information about the systemd-commits mailing list