On Wed 26 Mar 2025 at 09:00:33 -0400, Mouse wrote:
> In sbin/newfs/newfs.c, I see, inter alia,
>
> int
> main(int argc, char *argv[])
> {
> ...
> #ifdef MFS
> if (mfs) {
> ...
> (void) chdir("/");
> ...
> if (mount(MOUNT_MFS, ...) == -1)
>
> Does anyone happen to know why the chdir to / is there? It breaksMaybe it's just for the case where you're mounting on top of one of your parent directories? In that case you'd be in a directory that no longer can be reached. > /~\ The ASCII Mouse -Olaf. -- ___ Olaf 'Rhialto' Seibert <rhialto/at/falu.nl> \X/ There is no AI. There is just someone else's work. --I. Rose
signature.asc
Description: PGP signature
