Commit e99ee0de by Serge Hallyn Committed by Daniel Lezcano

don't try to pin a null rootfs.

parent 9ba8130c
...@@ -485,6 +485,9 @@ int pin_rootfs(const char *rootfs) ...@@ -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;
......
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