From d2dfce17b5a1bb658e54a0339320207da92dc955 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 19 Oct 2010 19:35:35 +0200 Subject: [PATCH] label: don't fail miserably if filesystem doesn't do xattrs/labels https://bugzilla.redhat.com/show_bug.cgi?id=642664 --- src/label.c | 4 ++++ 1 file changed, 4 insertions(+) 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; } } -- 2.39.5