Fix typo in sbin clone

This commit is contained in:
topjohnwu 2019-06-25 03:35:25 -07:00
parent 09935e591a
commit 911b8273fe

View File

@ -205,8 +205,8 @@ void SARInit::patch_rootdir() {
xmount(ROOTBLK, ROOTMIR, "erofs", MS_RDONLY, nullptr); xmount(ROOTBLK, ROOTMIR, "erofs", MS_RDONLY, nullptr);
// Recreate original sbin structure // Recreate original sbin structure
int src = xopen(ROOTMIR, O_RDONLY | O_CLOEXEC); int src = xopen(ROOTMIR "/sbin", O_RDONLY | O_CLOEXEC);
int dest = xopen(ROOTMIR, O_RDONLY | O_CLOEXEC); int dest = xopen("/sbin", O_RDONLY | O_CLOEXEC);
DIR *fp = fdopendir(src); DIR *fp = fdopendir(src);
struct dirent *entry; struct dirent *entry;
struct stat st; struct stat st;