mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-28 06:35:34 +07:00
label: don't print warning when we try ro relabel an non-existing file
https://bugzilla.redhat.com/show_bug.cgi?id=698674
This commit is contained in:
parent
6dfa54942c
commit
b4bd51448f
2
TODO
2
TODO
@ -28,6 +28,8 @@ F15 External:
|
||||
|
||||
Features:
|
||||
|
||||
* plymouth.enable=0
|
||||
|
||||
* introduce dbus calls for enabling/disabling a service
|
||||
|
||||
* support notifications for services being enabled/disabled
|
||||
|
@ -90,14 +90,14 @@ int label_fix(const char *path, bool ignore_enoent) {
|
||||
/* If the FS doesn't support labels, then exit without warning */
|
||||
if (r < 0 && errno == ENOTSUP)
|
||||
return 0;
|
||||
|
||||
/* Ignore ENOENT in some cases */
|
||||
if (r < 0 && ignore_enoent && errno == ENOENT)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (r < 0) {
|
||||
/* Ignore ENOENT in some cases */
|
||||
if (ignore_enoent && errno == ENOENT)
|
||||
return 0;
|
||||
|
||||
log_full(security_getenforce() == 1 ? LOG_ERR : LOG_DEBUG,
|
||||
"Unable to fix label of %s: %m", path);
|
||||
r = security_getenforce() == 1 ? -errno : 0;
|
||||
|
Loading…
Reference in New Issue
Block a user