summaryrefslogtreecommitdiff
path: root/src/label.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-19 19:35:35 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-19 19:35:35 +0200
commitd2dfce17b5a1bb658e54a0339320207da92dc955 (patch)
treecd6ac3537ea43dc920f8beb4a21b93fe9bf165cc /src/label.c
parente10fe9ffeaeda205e62b0d7308e339ed880d1bba (diff)
label: don't fail miserably if filesystem doesn't do xattrs/labels
https://bugzilla.redhat.com/show_bug.cgi?id=642664
Diffstat (limited to 'src/label.c')
-rw-r--r--src/label.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/label.c b/src/label.c
index fb570c54a5..809b1ee646 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;
}
}