From: Lennart Poettering Date: Tue, 19 Oct 2010 17:35:35 +0000 (+0200) Subject: label: don't fail miserably if filesystem doesn't do xattrs/labels X-Git-Tag: v12~211 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2dfce17b5a1bb658e54a0339320207da92dc955;p=systemd label: don't fail miserably if filesystem doesn't do xattrs/labels https://bugzilla.redhat.com/show_bug.cgi?id=642664 --- diff --git a/src/label.c b/src/label.c index fb570c54..809b1ee6 100644 --- a/src/label.c +++ b/src/label.c @@ -83,6 +83,10 @@ int label_fix(const char *path) { if (r == 0) { r = setfilecon(path, fcon); freecon(fcon); + + /* If the FS doesn't support labels, then exit without warning */ + if (r < 0 && errno == ENOTSUP) + return 0; } }