Unverified Commit 730481c0 by Long Wang Committed by Stéphane Graber

lxclock: return the right error when open lock file failed

Signed-off-by: 's avatarLong Wang <w@laoqinren.net>
parent 42ba0192
......@@ -229,6 +229,7 @@ int lxclock(struct lxc_lock *l, int timeout)
S_IWUSR | S_IRUSR);
if (l->u.f.fd == -1) {
ERROR("Error opening %s", l->u.f.fname);
saved_errno = errno;
goto out;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment