mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-02 21:04:08 +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;
|
||||
int ret, fd;
|
||||
|
||||
if (rootfs == NULL || strlen(rootfs) == 0)
|
||||
return 0;
|
||||
|
||||
if (!realpath(rootfs, absrootfs)) {
|
||||
SYSERROR("failed to get real path for '%s'", rootfs);
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user