Skip to content

Commit 2ab4fa5

Browse files
authored
fusermount_prog = getenv("FUSERMOUNT_PROG");
1 parent c832e4f commit 2ab4fa5

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/runtime/runtime.c

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -549,18 +549,16 @@ sqfs_err private_sqfs_stat(sqfs* fs, sqfs_inode* inode, struct stat* st) {
549549

550550
/* ================= End ELF parsing */
551551

552-
char* fusermount_prog = getenv("FUSERMOUNT_PROG");
553-
if (fusermount_prog == NULL) {
554-
fusermount_prog = find_fusermount();
555-
if (fusermount_prog != NULL) {
556-
setenv("FUSERMOUNT_PROG", fusermount_prog, 1);
557-
// printf("FUSERMOUNT_PROG set to %s\n", fusermount_prog);
558-
free(fusermount_prog);
559-
} else {
560-
printf("Error: fusermount not found\n");
561-
}
562-
} else {
563-
printf("FUSERMOUNT_PROG is already set to %s\n", fusermount_prog);
552+
char* fusermount_prog;
553+
fusermount_prog = getenv("FUSERMOUNT_PROG");
554+
if (fusermount_prog == NULL) {
555+
fusermount_prog = find_fusermount();
556+
if (fusermount_prog != NULL) {
557+
// printf("FUSERMOUNT_PROG set to %s\n", fusermount_prog);
558+
free(fusermount_prog);
559+
} else {
560+
printf("Error: fusermount not found\n");
561+
}
564562
}
565563

566564
extern int fusefs_main(int argc, char* argv[], void (* mounted)(void));

0 commit comments

Comments
 (0)