summaryrefslogtreecommitdiff
path: root/src/automount.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/automount.c')
-rw-r--r--src/automount.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/automount.c b/src/automount.c
index 213b178eae..3a69cf9b4c 100644
--- a/src/automount.c
+++ b/src/automount.c
@@ -304,6 +304,8 @@ static int open_dev_autofs(Manager *m) {
if (m->dev_autofs_fd >= 0)
return m->dev_autofs_fd;
+ label_fix("/dev/autofs");
+
if ((m->dev_autofs_fd = open("/dev/autofs", O_CLOEXEC|O_RDONLY)) < 0) {
log_error("Failed to open /dev/autofs: %s", strerror(errno));
return -errno;