mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 09:26:26 +00:00
don't try to pin a null rootfs.
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
9ba8130c96
commit
e99ee0decc
@ -485,6 +485,9 @@ int pin_rootfs(const char *rootfs)
|
|||||||
struct stat s;
|
struct stat s;
|
||||||
int ret, fd;
|
int ret, fd;
|
||||||
|
|
||||||
|
if (rootfs == NULL || strlen(rootfs) == 0)
|
||||||
|
return 0;
|
||||||
|
|
||||||
if (!realpath(rootfs, absrootfs)) {
|
if (!realpath(rootfs, absrootfs)) {
|
||||||
SYSERROR("failed to get real path for '%s'", rootfs);
|
SYSERROR("failed to get real path for '%s'", rootfs);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user