mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-18 12:29:32 +08:00
* path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'flags to
mnt_opts string if present in mount flags.
This commit is contained in:
parent
0d3442bf36
commit
65e941162d
@ -1,3 +1,8 @@
|
|||||||
|
2005-04-29 Dave Korn <dave.korn@artimi.com>
|
||||||
|
|
||||||
|
* path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'
|
||||||
|
flags to mnt_opts string if present in mount flags.
|
||||||
|
|
||||||
2005-04-25 Christopher Faylor <cgf@timesys.com>
|
2005-04-25 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* mount.cc (mount_commands): Display "-X" option when appropriate.
|
* mount.cc (mount_commands): Display "-X" option when appropriate.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* path.cc
|
/* path.cc
|
||||||
|
|
||||||
Copyright 2001 Red Hat, Inc.
|
Copyright 2001, 2002, 2003, 2005 Red Hat, Inc.
|
||||||
|
|
||||||
This file is part of Cygwin.
|
This file is part of Cygwin.
|
||||||
|
|
||||||
@ -343,6 +343,10 @@ getmntent (FILE *)
|
|||||||
strcat (mnt.mnt_opts, (char *) ",cygexec");
|
strcat (mnt.mnt_opts, (char *) ",cygexec");
|
||||||
else if (m->flags & MOUNT_EXEC)
|
else if (m->flags & MOUNT_EXEC)
|
||||||
strcat (mnt.mnt_opts, (char *) ",exec");
|
strcat (mnt.mnt_opts, (char *) ",exec");
|
||||||
|
else if (m->flags & MOUNT_NOTEXEC)
|
||||||
|
strcat (mnt.mnt_opts, (char *) ",noexec");
|
||||||
|
if (m->flags & MOUNT_ENC)
|
||||||
|
strcat (mnt.mnt_opts, ",managed");
|
||||||
if ((m->flags & MOUNT_CYGDRIVE)) /* cygdrive */
|
if ((m->flags & MOUNT_CYGDRIVE)) /* cygdrive */
|
||||||
strcat (mnt.mnt_opts, (char *) ",cygdrive");
|
strcat (mnt.mnt_opts, (char *) ",cygdrive");
|
||||||
mnt.mnt_freq = 1;
|
mnt.mnt_freq = 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user