diff --git a/src/lxc/conf.c b/src/lxc/conf.c index db6c0434a..bbce64049 100644 --- a/src/lxc/conf.c +++ b/src/lxc/conf.c @@ -579,9 +579,8 @@ int lxc_rootfs_init(struct lxc_conf *conf, bool userns) PROTECT_LOOKUP_BENEATH, S_IWUSR | S_IRUSR); if (fd_pin < 0) { - if (errno == EROFS) { + if (errno == EROFS) return log_trace_errno(0, EROFS, "Not pinning on read-only filesystem"); - } return syserror("Failed to pin rootfs"); }