Fix typo in sbin clone
This commit is contained in:
parent
09935e591a
commit
911b8273fe
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user