summaryrefslogtreecommitdiffstats
path: root/winsup/utils/mount.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-13 20:24:20 +0000
committerChristopher Faylor <me@cgf.cx>2005-05-13 20:24:20 +0000
commit180cd17fa13301ee8a974e2fd55d8a4b47d86f5d (patch)
tree44d60e75e07d94441ce94c08d85d629b38153d06 /winsup/utils/mount.cc
parente01eac68ed93d369c416bbbd16ed1b7d13086462 (diff)
downloadcygnal-180cd17fa13301ee8a974e2fd55d8a4b47d86f5d.tar.gz
cygnal-180cd17fa13301ee8a974e2fd55d8a4b47d86f5d.tar.bz2
cygnal-180cd17fa13301ee8a974e2fd55d8a4b47d86f5d.zip
* mount.cc (mount_commands): Display "-X" option when appropriate.
Diffstat (limited to 'winsup/utils/mount.cc')
-rw-r--r--winsup/utils/mount.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/utils/mount.cc b/winsup/utils/mount.cc
index 89220f20f..4a874b566 100644
--- a/winsup/utils/mount.cc
+++ b/winsup/utils/mount.cc
@@ -423,6 +423,8 @@ mount_commands (void)
strcat (opts, " -x");
if (strstr (p->mnt_opts, ",noexec"))
strcat (opts, " -E");
+ if (strstr (p->mnt_opts, ",cygexec"))
+ strcat (opts, " -X");
if (strstr (p->mnt_opts, ",managed"))
strcat (opts, " -o managed");
while ((c = strchr (p->mnt_fsname, '\\')) != NULL)