assert(u);
assert(u->load_state == UNIT_STUB);
- a->pipe_fd = -1;
+ a->pipe_fd = -EBADF;
a->directory_mode = 0755;
UNIT(a)->ignore_on_isolate = true;
}
init_autofs_dev_ioctl(param);
param->size = l;
- param->ioctlfd = -1;
+ param->ioctlfd = -EBADF;
param->openmount.devid = devid;
strcpy(param->path, where);
}
static int automount_send_ready(Automount *a, Set *tokens, int status) {
- _cleanup_close_ int ioctl_fd = -1;
+ _cleanup_close_ int ioctl_fd = -EBADF;
unsigned token;
int r;
}
static void automount_enter_waiting(Automount *a) {
- _cleanup_close_ int ioctl_fd = -1;
+ _cleanup_close_ int ioctl_fd = -EBADF;
int p[2] = { -1, -1 };
char name[STRLEN("systemd-") + DECIMAL_STR_MAX(pid_t) + 1];
_cleanup_free_ char *options = NULL;
if (!data)
return log_oom();
- data->ioctl_fd = -1;
+ data->ioctl_fd = -EBADF;
data->dev_autofs_fd = fcntl(UNIT(a)->manager->dev_autofs_fd, F_DUPFD_CLOEXEC, 3);
if (data->dev_autofs_fd < 0)