Commit c6a9b0d7 by S.Çağlar Onur Committed by Serge Hallyn

add missing paranthesis (v2)

parent 9529609a
......@@ -2958,9 +2958,9 @@ static bool add_remove_device_node(struct lxc_container *c, char *src_path, char
goto out;
/* continue if path is character device or block device */
if S_ISCHR(st.st_mode)
if (S_ISCHR(st.st_mode))
ret = snprintf(value, MAX_BUFFER, "c %d:%d rwm", major(st.st_rdev), minor(st.st_rdev));
else if S_ISBLK(st.st_mode)
else if (S_ISBLK(st.st_mode))
ret = snprintf(value, MAX_BUFFER, "b %d:%d rwm", major(st.st_rdev), minor(st.st_rdev));
else
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