chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e10fe9f
)
label: don't fail miserably if filesystem doesn't do xattrs/labels
author
Lennart Poettering
<lennart@poettering.net>
Tue, 19 Oct 2010 17:35:35 +0000
(19:35 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 19 Oct 2010 17:35:35 +0000
(19:35 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=642664
src/label.c
patch
|
blob
|
history
diff --git
a/src/label.c
b/src/label.c
index fb570c54a50d5c6693e0c9e464a266136d3fb161..809b1ee64656fb5a75c590a73ee16c44551f28b5 100644
(file)
--- 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 (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;
}
}
}
}