From: Jeffrey Altman Date: Tue, 4 Oct 2011 23:01:50 +0000 (-0400) Subject: Windows: Explorer shell GetUnixModeBits() X-Git-Tag: upstream/1.8.0_pre1^2~3191 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=65bdade6d5a6c4301444f288cf20430241cbdc5d;p=packages%2Fo%2Fopenafs.git Windows: Explorer shell GetUnixModeBits() actually append the unix mode string elements to the respective strings. Change-Id: I32d69f824f01e8cfacbf811a4bb14e01e3b6b9a3 Reviewed-on: http://gerrit.openafs.org/5552 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/client_exp/gui2fs.cpp b/src/WINNT/client_exp/gui2fs.cpp index 4cb93b752..faba0cac4 100644 --- a/src/WINNT/client_exp/gui2fs.cpp +++ b/src/WINNT/client_exp/gui2fs.cpp @@ -2120,32 +2120,32 @@ GetUnixModeBits( const CString& strPath, CString& user, CString& group, CString& code = pioctl_T(strPath, VIOC_GETUNIXMODE, &blob, 1); if (code == 0 && blob.out_size == sizeof(afs_uint32)) { if (unixModeBits & S_IRUSR) - user + TEXT("r"); + user += _T("r"); if (unixModeBits & S_IWUSR) - user + TEXT("w"); + user += _T("w"); if (unixModeBits & S_IXUSR) - user + TEXT("x"); + user += _T("x"); if (unixModeBits & S_IRGRP) - group + TEXT("r"); + group += _T("r"); if (unixModeBits & S_IWGRP) - group + TEXT("w"); + group += _T("w"); if (unixModeBits & S_IXGRP) - group + TEXT("x"); + group += _T("x"); if (unixModeBits & S_IROTH) - other + TEXT("r"); + other += _T("r"); if (unixModeBits & S_IWOTH) - other + TEXT("w"); + other += _T("w"); if (unixModeBits & S_IXOTH) - other + TEXT("x"); + other += _T("x"); if (unixModeBits & S_ISUID) - suid + TEXT("s"); + suid += _T("s"); if (unixModeBits & S_ISGID) - suid + TEXT("g"); + suid += _T("g"); if (unixModeBits & S_ISVTX) - suid + TEXT("v"); + suid += _T("v"); return TRUE; }