Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hadoop-common-project/hadoop-common/src/main/winutils/chmod.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,10 @@ static BOOL ParseCommandLineArguments(
// Check if the given path name is a file or directory
// Only set recursive flag if the given path is a directory
//
dwRtnCode = GetFileInformationByName(*path, FALSE, &fileInfo);
dwRtnCode = GetFileInformationByPathName(*path, FALSE, &fileInfo);
if (dwRtnCode != ERROR_SUCCESS)
{
ReportErrorCode(L"GetFileInformationByName", dwRtnCode);
ReportErrorCode(L"GetFileInformationByPathName", dwRtnCode);
return FALSE;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ static DWORD HardlinkStat(__in LPCWSTR fileName, __out DWORD *puHardLinkCount)

// Get file information which contains the hard link count
//
dwErrorCode = GetFileInformationByName(longFileName, FALSE, &fileInformation);
dwErrorCode = GetFileInformationByPathName(
longFileName, FALSE, &fileInformation);
if (dwErrorCode != ERROR_SUCCESS)
{
goto HardlinkStatExit;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void ReadlinkUsage();
int SystemInfo();
void SystemInfoUsage();

DWORD GetFileInformationByName(__in LPCWSTR pathName, __in BOOL followLink,
DWORD GetFileInformationByPathName(__in LPCWSTR pathName, __in BOOL followLink,
__out LPBY_HANDLE_FILE_INFORMATION lpFileInformation);

DWORD CheckAccessForCurrentUser(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ACCESS_MASK WinMasks[WIN_MASKS_TOTAL] =
};

//----------------------------------------------------------------------------
// Function: GetFileInformationByName
// Function: GetFileInformationByPathName
//
// Description:
// To retrieve the by handle file information given the file name
Expand All @@ -85,7 +85,7 @@ const ACCESS_MASK WinMasks[WIN_MASKS_TOTAL] =
// or junction point to get the target file information. Otherwise, the
// information for the symbolic link or junction point is retrieved.
//
DWORD GetFileInformationByName(
DWORD GetFileInformationByPathName(
__in LPCWSTR pathName,
__in BOOL followLink,
__out LPBY_HANDLE_FILE_INFORMATION lpFileInformation)
Expand Down Expand Up @@ -888,7 +888,7 @@ DWORD FindFileOwnerAndPermission(

if (pMask == NULL) goto FindFileOwnerAndPermissionEnd;

dwRtnCode = GetFileInformationByName(pathName,
dwRtnCode = GetFileInformationByPathName(pathName,
followLink, &fileInformation);
if (dwRtnCode != ERROR_SUCCESS)
{
Expand Down
4 changes: 2 additions & 2 deletions hadoop-common-project/hadoop-common/src/main/winutils/ls.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,11 +280,11 @@ int Ls(__in int argc, __in_ecount(argc) wchar_t *argv[])
goto LsEnd;
}

dwErrorCode = GetFileInformationByName(
dwErrorCode = GetFileInformationByPathName(
longPathName, optionsMask & CmdLineOptionFollowSymlink, &fileInformation);
if (dwErrorCode != ERROR_SUCCESS)
{
ReportErrorCode(L"GetFileInformationByName", dwErrorCode);
ReportErrorCode(L"GetFileInformationByPathName", dwErrorCode);
goto LsEnd;
}

Expand Down
Loading