mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 13:28:58 +00:00
add missing paranthesis (v2)
Signed-off-by: S.Çağlar Onur <caglar@10ur.org> Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
9529609a81
commit
c6a9b0d797
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user