mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 11:13:50 +00:00
cgfsng: cgfsng_attach()
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
25f66a8fde
commit
0cb10e11f1
@ -2495,7 +2495,7 @@ static bool cgfsng_attach(const char *name, const char *lxcpath, pid_t pid)
|
|||||||
char pidstr[25];
|
char pidstr[25];
|
||||||
|
|
||||||
len = snprintf(pidstr, 25, "%d", pid);
|
len = snprintf(pidstr, 25, "%d", pid);
|
||||||
if (len < 0 || len > 25)
|
if (len < 0 || len >= 25)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
for (i = 0; hierarchies[i]; i++) {
|
for (i = 0; hierarchies[i]; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user