#include "mkdir.h"
#include "dialog.h"
#include "version.h"
+#include "mount.h"
#include "port.h"
static void
make_cygwin_bat ()
{
- batname = backslash (concat (root_dir, "/cygwin.bat", 0));
+ batname = backslash (cygpath ("/cygwin.bat", 0));
/* if the batch file exists, don't overwrite it */
if (_access (batname, 0) == 0)
static void
make_etc_profile ()
{
- char *fname = concat (root_dir, "/etc/profile", 0);
+ char *fname = cygpath ("/etc/profile", 0);
/* if the file exists, don't overwrite it */
if (_access (fname, 0) == 0)
static int
uexists (char *path)
{
- char *f = concat (root_dir, path, 0);
+ char *f = cygpath (path, 0);
int a = _access (f, 0);
free (f);
if (a == 0)
if (uexists ("/etc/passwd") && uexists ("/etc/group"))
return;
- char *fname = concat (root_dir, "/etc/postinstall/passwd-grp.bat", 0);
+ char *fname = cygpath ("/etc/postinstall/passwd-grp.bat", 0);
mkdir_p (0, fname);
FILE *p = fopen (fname, "wb");
static void
save_icon ()
{
- iconname = backslash (concat (root_dir, "/cygwin.ico", 0));
+ iconname = backslash (cygpath ("/cygwin.ico", 0));
HRSRC rsrc = FindResource (NULL, "CYGWIN.ICON", "FILE");
if (rsrc == NULL)
verinfo.dwOSVersionInfoSize = sizeof (verinfo);
GetVersionEx (&verinfo);
- root_desktop = check_desktop("Cygwin",backslash (concat (root_dir, "/cygwin.bat", 0)));
- root_menu = check_startmenu("Cygwin Bash Shell",backslash (concat (root_dir, "/cygwin.bat", 0)));
+ root_desktop = check_desktop("Cygwin",backslash (cygpath ("/cygwin.bat", 0)));
+ root_menu = check_startmenu("Cygwin Bash Shell",backslash (cygpath ("/cygwin.bat", 0)));
int rv = 0;