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://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=d2dfce17b5a1bb658e54a0339320207da92dc955;hp=e10fe9ffeaeda205e62b0d7308e339ed880d1bba 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 fb570c54a..809b1ee64 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; } }