From a59fb4fa28bff7e95ed32acf6edb57ca56dcefc9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 19 Apr 2000 17:35:47 +0000 Subject: [PATCH] * setup.c (main): Create an empty /var/run/utmp. --- ChangeLog | 4 ++++ setup.c | 13 ++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 800abe22..edda44fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 19 13:34:44 2000 Christopher Faylor + + * setup.c (main): Create an empty /var/run/utmp. + Tue Apr 18 19:16:56 2000 Christopher Faylor * Makefile.in: Add umount to list of files to include in setup.exe. diff --git a/setup.c b/setup.c index 2cb8dd2b..4535bf24 100644 --- a/setup.c +++ b/setup.c @@ -1163,7 +1163,8 @@ those as the basis for your installation.\n\n" root = prompt ("Root directory", defroot); if (strcmpi (root, wd) == 0) { - printf ("Please do not use the current directory as the root directory.\nYou should run setup.exe from a temporary directory.\n"); + printf ("Please do not use the current directory as the root directory.\n" + "You should run setup.exe from a temporary directory.\n"); continue; } if (strchr (root, ' ')) @@ -1210,13 +1211,23 @@ those as the basis for your installation.\n\n" } else { + FILE *fp; + _chdrive (toupper (*root) - 'A' + 1); xumount (wd, "/usr"); + xumount (wd, "/var"); + /* Make /bin point to /usr/bin and /lib point to /usr/lib. */ mkmount (wd, root, "bin", "/usr/bin", 1); mkmount (wd, root, "lib", "/usr/lib", 1); + mkdirp ("var\\run"); + /* Create /var/run/utmp */ + fp = fopen ("var\\run\\utmp", "wb"); + if (fp) + fclose (fp); + files.count = NFILE_LIST; files.array = calloc (sizeof (char *), NFILE_LIST + NFILE_SLOP); files.index = -1; -- 2.43.5