magic_mount: dont add created files to list

optimization suggested by simonpink

Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
This commit is contained in:
backslashxx 2025-11-21 23:11:29 +08:00
commit 245a67a381

View file

@ -518,7 +518,7 @@ static int do_magic(const char *base, const char *wbase, Node *node,
strerror(errno));
return -1;
} else
send_unmountable(target); // tell ksu about this mount
if (!strstr(target, ".magic_mount/workdir/")) { send_unmountable(target); } // tell ksu about this mount
(void)mount(NULL, target, NULL,
MS_REMOUNT | MS_BIND | MS_RDONLY, NULL);