summaryrefslogtreecommitdiff
path: root/src/udev/udev-node.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-03 16:25:50 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-03 16:25:50 +0200
commitc9bc07646100855ff8193e1e62c52b77327e264d (patch)
tree41a37615bb323ff5c6a5a212209ae12e6ec1b054 /src/udev/udev-node.c
parent61b1477c8107e9b7143be9acf6bf678fa9d0674d (diff)
mount-setup: don't complain if we try to fix the label of a dir beneath a mount but can't due to EROFS
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r--src/udev/udev-node.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index aee84a92f1..1bef5212e6 100644
--- a/src/udev/udev-node.c
+++ b/src/udev/udev-node.c
@@ -91,7 +91,7 @@ static int node_symlink(struct udev *udev, const char *node, const char *slink)
buf[len] = '\0';
if (strcmp(target, buf) == 0) {
log_debug("preserve already existing symlink '%s' to '%s'\n", slink, target);
- label_fix(slink, true);
+ label_fix(slink, true, false);
utimensat(AT_FDCWD, slink, NULL, AT_SYMLINK_NOFOLLOW);
goto exit;
}
@@ -307,7 +307,7 @@ static int node_fixup(struct udev_device *dev, mode_t mode, uid_t uid, gid_t gid
* something else has set a custom context in the meantime.
*/
if (strcmp(udev_device_get_action(dev), "add") == 0)
- label_fix(devnode, true);
+ label_fix(devnode, true, false);
/* always update timestamp when we re-use the node, like on media change events */
utimensat(AT_FDCWD, devnode, NULL, 0);