* mount.cc (main): Add "-X" option to specify a "Cygwin executable".
This commit is contained in:
parent
fc6f4e20ec
commit
865ab4b83f
|
@ -1,14 +1,18 @@
|
||||||
|
Wed Apr 26 23:43:25 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* mount.cc (main): Add "-X" option to specify a "Cygwin executable".
|
||||||
|
|
||||||
Sat Apr 15 23:34:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Sat Apr 15 23:34:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* mkpasswd.c (main): Use GetDCName instead of GetAnyDCName.
|
* mkpasswd.c (main): Use GetDCName instead of GetAnyDCName.
|
||||||
Don't create extra passwd entry for administrators group
|
Don't create extra passwd entry for administrators group
|
||||||
if local_groups is set.
|
if local_groups is set.
|
||||||
(usage): Change usage text slightly.
|
(usage): Change usage text slightly.
|
||||||
(enum_users): Loop while ERROR_MORE_DATA is returned.
|
(enum_users): Loop while ERROR_MORE_DATA is returned.
|
||||||
(enum_local_groups): Ditto.
|
(enum_local_groups): Ditto.
|
||||||
* mkgroup.c (enum_local_groups): Ditto.
|
* mkgroup.c (enum_local_groups): Ditto.
|
||||||
(enum_groups) Ditto.
|
(enum_groups) Ditto.
|
||||||
(usage): Change usage text slightly.
|
(usage): Change usage text slightly.
|
||||||
|
|
||||||
Thu Apr 13 01:22:35 2000 Christopher Faylor <cgf@cygnus.com>
|
Thu Apr 13 01:22:35 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
|
|
@ -114,42 +114,44 @@ main (int argc, const char **argv)
|
||||||
|
|
||||||
for (i = 1; i < argc; ++i)
|
for (i = 1; i < argc; ++i)
|
||||||
{
|
{
|
||||||
if (argv[i][0] != '-')
|
if (argv[i][0] != '-')
|
||||||
break;
|
break;
|
||||||
|
|
||||||
if (strcmp (argv[i], "--change-cygdrive-prefix") == 0)
|
if (strcmp (argv[i], "--change-cygdrive-prefix") == 0)
|
||||||
{
|
{
|
||||||
if ((i + 2) != argc)
|
if ((i + 2) != argc)
|
||||||
usage ();
|
usage ();
|
||||||
|
|
||||||
change_cygdrive_prefix (argv[i+1], flags);
|
change_cygdrive_prefix (argv[i+1], flags);
|
||||||
}
|
}
|
||||||
else if (strcmp (argv[i], "--import-old-mounts") == 0)
|
else if (strcmp (argv[i], "--import-old-mounts") == 0)
|
||||||
{
|
{
|
||||||
if ((i + 1) != argc)
|
if ((i + 1) != argc)
|
||||||
usage ();
|
usage ();
|
||||||
|
|
||||||
cygwin_internal (CW_READ_V1_MOUNT_TABLES);
|
cygwin_internal (CW_READ_V1_MOUNT_TABLES);
|
||||||
exit (0);
|
exit (0);
|
||||||
}
|
}
|
||||||
else if (strcmp (argv[i], "-b") == 0)
|
else if (strcmp (argv[i], "-b") == 0)
|
||||||
flags |= MOUNT_BINARY;
|
flags |= MOUNT_BINARY;
|
||||||
else if (strcmp (argv[i], "-t") == 0)
|
else if (strcmp (argv[i], "-t") == 0)
|
||||||
flags &= ~MOUNT_BINARY;
|
flags &= ~MOUNT_BINARY;
|
||||||
|
else if (strcmp (argv[i], "-X") == 0)
|
||||||
|
flags |= MOUNT_CYGWIN_EXEC;
|
||||||
#if 0
|
#if 0
|
||||||
else if (strcmp (argv[i], "-c") == 0)
|
else if (strcmp (argv[i], "-x") == 0)
|
||||||
create_missing_dirs = TRUE;
|
create_missing_dirs = TRUE;
|
||||||
#endif
|
#endif
|
||||||
else if (strcmp (argv[i], "-s") == 0)
|
else if (strcmp (argv[i], "-s") == 0)
|
||||||
flags |= MOUNT_SYSTEM;
|
flags |= MOUNT_SYSTEM;
|
||||||
else if (strcmp (argv[i], "-u") == 0)
|
else if (strcmp (argv[i], "-u") == 0)
|
||||||
flags &= ~MOUNT_SYSTEM;
|
flags &= ~MOUNT_SYSTEM;
|
||||||
else if (strcmp (argv[i], "-x") == 0)
|
else if (strcmp (argv[i], "-x") == 0)
|
||||||
flags |= MOUNT_EXEC;
|
flags |= MOUNT_EXEC;
|
||||||
else if (strcmp (argv[i], "-f") == 0)
|
else if (strcmp (argv[i], "-f") == 0)
|
||||||
force = TRUE;
|
force = TRUE;
|
||||||
else
|
else
|
||||||
usage ();
|
usage ();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((i + 2) != argc)
|
if ((i + 2) != argc)
|
||||||
|
|
Loading…
Reference in New Issue