This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello, with the latest release (1.5.13-1) I have trouble accessing drives via a prefix other than /cygdrive. It seems that this was introduced by the following change: 2004-10-28 Pierre Humblet <pierre.humblet@ieee.org> * path.cc (mount_info::from_registry): Deimpersonate while accessing HKLM. (mount_info::read_cygdrive_info_from_registry): Ditto. * cygheap.h: Define NO_IMPERSONATION. (cygheap_user::issetuid): Replace INVALID_HANDLE_VALUE by NO_IMPERSONATION. (cygheap_user::has_impersonation_tokens): Ditto. (cygheap_user::close_impersonation_tokens): Ditto. * uinfo.cc (uinfo_init): Ditto. * syscalls.cc (seteuid32): Ditto. * security.cc (set_impersonation_token): Ditto. Here is how the system behaves without the patch: Administrator@mordor ~ $ mount C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\cygwin\usr\share\mc\extfs on /usr/share/mc/extfs type system (binmode,cygexec) C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on /cygdrive/c type system (binmode,noumount) Administrator@mordor ~ $ mount -p Prefix Type Flags /mnt user binmode /cygdrive system binmode Administrator@mordor ~ $ cd /mnt/c bash: cd: /mnt/c: No such file or directory Administrator@mordor ~ $ and with the patch: Administrator@mordor ~ $ mount C:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type system (binmode) C:\cygwin\usr\share\mc\extfs on /usr/share/mc/extfs type system (binmode,cygexec) C:\cygwin\bin on /usr/bin type system (binmode) C:\cygwin\lib on /usr/lib type system (binmode) C:\cygwin on / type system (binmode) c: on /mnt/c type user (binmode,noumount) Administrator@mordor ~ $ mount -p Prefix Type Flags /mnt user binmode /cygdrive system binmode Administrator@mordor ~ $ cd /mnt/c Administrator@mordor /mnt/c $ Here is the changelog entry: 2005-03-06 Pavel Tsekov <ptsekov@gmx.net> * path.cc (mount_info::read_cygdrive_info_from_registry): Use the user prefix if it exists.
Attachment:
path.cc.cygdrive.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |