+Mon Apr 17 00:00:49 2000 Christopher Faylor <cgf@cygnus.com>
+
+ * setup.c (main): Disallow running setup.exe from the "root".
+
Sun Apr 16 18:50:58 2000 Christopher Faylor <cgf@cygnus.com>
Use "warning" function, where appropriate to output warnings.
return xsystem (buffer) == 0;
}
-static char rev[] = " $Revision$";
+static char rev[] = " $Revision$ ";
int
main ()
{
char *revn, *p;
revn = strchr (rev, ':');
- if (!revn || (p = strchr (revn, ' ')) == NULL)
+ if (!revn || (p = strchr (revn + 2, ' ')) == NULL)
revn = "";
else
{
}
printf ( "\n\n\n\n"
-"This is the Cygwin setup utility%s, built on " __DATE__ " " __TIME__ ".\n\n"
+"This is the Cygwin setup utility%s,\n"
+"built on " __DATE__ " " __TIME__ ".\n\n"
"Use this program to install the latest version of the Cygwin Utilities\n"
"from the Internet.\n\n"
"Alternatively, if you already have already downloaded the appropriate files\n"
for (done = 0; !done;)
{
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");
+ continue;
+ }
if (strchr (root, ' '))
{
char *temp;