mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
label: don't fail miserably if filesystem doesn't do xattrs/labels
https://bugzilla.redhat.com/show_bug.cgi?id=642664
This commit is contained in:
parent
e10fe9ffea
commit
d2dfce17b5
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user