mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 07:51:00 +00:00
windows-pioctl-path-charset-translation-20080205
LICENSE MIT FIXES 84279 Do not translate the character set of the pioctl path data. These paths were not provided by the file system but by the end user. Therefore, they were not converted to the OEM character set. With this change the AFS shell context menu will be displayed for non-ASCII file names when ANSI file names are being used as well as the fs commands will work.
This commit is contained in:
parent
df5cfb3de1
commit
b85428263c
@ -220,10 +220,16 @@ long cm_ParseIoctlPath(smb_ioctl_t *ioctlp, cm_user_t *userp, cm_req_t *reqp,
|
|||||||
* \\netbios-name\submount\path\.
|
* \\netbios-name\submount\path\.
|
||||||
* \\netbios-name\submount\path\file
|
* \\netbios-name\submount\path\file
|
||||||
*/
|
*/
|
||||||
TranslateExtendedChars(relativePath);
|
|
||||||
|
/* We do not perform path name translation on the ioctl path data
|
||||||
|
* because these paths were not translated by Windows through the
|
||||||
|
* file system API. Therefore, they are not OEM characters but
|
||||||
|
* whatever the display character set is.
|
||||||
|
*/
|
||||||
|
// TranslateExtendedChars(relativePath);
|
||||||
|
|
||||||
/* This is usually nothing, but for StatMountPoint it is the file name. */
|
/* This is usually nothing, but for StatMountPoint it is the file name. */
|
||||||
TranslateExtendedChars(ioctlp->inDatap);
|
// TranslateExtendedChars(ioctlp->inDatap);
|
||||||
|
|
||||||
#ifdef AFSIFS
|
#ifdef AFSIFS
|
||||||
/* we have passed the whole path, including the afs prefix.
|
/* we have passed the whole path, including the afs prefix.
|
||||||
|
Loading…
Reference in New Issue
Block a user