diff options
author | Dave Korn <dave.korn.cygwin@gmail.com> | 2005-04-29 16:39:34 +0000 |
---|---|---|
committer | Dave Korn <dave.korn.cygwin@gmail.com> | 2005-04-29 16:39:34 +0000 |
commit | 65e941162d856d2eef199b40f4a65a4c5aa253cd (patch) | |
tree | 7d45259794bae254533d0d79ac5f98b04fd94db9 /winsup | |
parent | 0d3442bf36ad057f60bb82cd67e5c00cdebd09dd (diff) | |
download | cygnal-65e941162d856d2eef199b40f4a65a4c5aa253cd.tar.gz cygnal-65e941162d856d2eef199b40f4a65a4c5aa253cd.tar.bz2 cygnal-65e941162d856d2eef199b40f4a65a4c5aa253cd.zip |
* path.cc (getmntent): Add previously-omitted 'noexec' and 'managed'flags to
mnt_opts string if present in mount flags.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/utils/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/utils/path.cc | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index b56a8ea62..1b5ddf49b 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -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> * mount.cc (mount_commands): Display "-X" option when appropriate. diff --git a/winsup/utils/path.cc b/winsup/utils/path.cc index 2c475fde3..4e28522ae 100644 --- a/winsup/utils/path.cc +++ b/winsup/utils/path.cc @@ -1,6 +1,6 @@ /* path.cc - Copyright 2001 Red Hat, Inc. + Copyright 2001, 2002, 2003, 2005 Red Hat, Inc. This file is part of Cygwin. @@ -343,6 +343,10 @@ getmntent (FILE *) strcat (mnt.mnt_opts, (char *) ",cygexec"); else if (m->flags & MOUNT_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 */ strcat (mnt.mnt_opts, (char *) ",cygdrive"); mnt.mnt_freq = 1; |