mirror of
https://github.com/urbit/shrub.git
synced 2024-11-27 18:34:48 +03:00
Revert "Merge pull request #5086 from urbit/jo/chdir"
This reverts commitefd123bfc7
, reversing changes made tof0e11a8456
. This reverts #5086, which should have been applied to release/next-vere, not release/next-sys.
This commit is contained in:
parent
b6e1fc2767
commit
0e8ef17352
@ -676,19 +676,12 @@ main(c3_i argc,
|
||||
u3_Host.bot_f = _stop_on_boot_completed_cb;
|
||||
}
|
||||
|
||||
{
|
||||
mkdir(u3_Host.dir_c, 0700);
|
||||
|
||||
// Some day, it might be nice to chroot() here or something.
|
||||
if ( 0 != chdir(u3_Host.dir_c) ) {
|
||||
u3l_log("boot: chdir to %s failed: %s\r\n", u3_Host.dir_c,
|
||||
strerror(errno));
|
||||
exit(1);
|
||||
}
|
||||
c3_free(u3_Host.dir_c);
|
||||
u3_Host.dir_c = strdup(".");
|
||||
#if 0
|
||||
if ( 0 == getuid() ) {
|
||||
chroot(u3_Host.dir_c);
|
||||
u3_Host.dir_c = "/";
|
||||
}
|
||||
|
||||
#endif
|
||||
u3_ve_sysopt();
|
||||
|
||||
// Block profiling signal, which should be delivered to exactly one thread.
|
||||
@ -734,7 +727,7 @@ main(c3_i argc,
|
||||
mprint_i *= 2;
|
||||
abs_c = c3_malloc(mprint_i);
|
||||
}
|
||||
printf("boot: home is %s\n", abs_c);
|
||||
printf("boot: home is %s/%s\n", abs_c, u3_Host.dir_c);
|
||||
c3_free(abs_c);
|
||||
} else {
|
||||
printf("boot: home is %s\n", abs_c);
|
||||
|
Loading…
Reference in New Issue
Block a user