X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flabel.c;h=809b1ee64656fb5a75c590a73ee16c44551f28b5;hp=fb570c54a50d5c6693e0c9e464a266136d3fb161;hb=5b40d54851da5934a0c819b35d6d5338039ee923;hpb=5a33f657b52f30a77fac41feb8854b563d77382e 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; } }