diff options
| author | Rostislav Krasny <rostigm@gmail.com> | 2020-01-24 23:15:09 +0200 |
|---|---|---|
| committer | Rostislav Krasny <rostigm@gmail.com> | 2020-01-25 00:53:39 +0000 |
| commit | 9da67feecffeecfa4d3eca56abcd54055d38187b (patch) | |
| tree | 07fb47617ea71f4ff7e581998f76ebccc7fbb2e1 | |
| parent | b0b164a87f7da6cecc22f400fe8560a1cb548c31 (diff) | |
| download | git-repo-9da67feecffeecfa4d3eca56abcd54055d38187b.tar.gz | |
Fix a typo
Change-Id: I1d1d1c7ec6c0c706eb08ceb803c37e1ce1baf8b3
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/251834
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
Tested-by: Rostislav Krasny <rostigm@gmail.com>
| -rw-r--r-- | platform_utils_win32.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/platform_utils_win32.py b/platform_utils_win32.py index b5c21fe0..e20755a4 100644 --- a/platform_utils_win32.py +++ b/platform_utils_win32.py | |||
| @@ -180,7 +180,7 @@ def readlink(path): | |||
| 180 | if reparse_point_handle == INVALID_HANDLE_VALUE: | 180 | if reparse_point_handle == INVALID_HANDLE_VALUE: |
| 181 | _raise_winerror( | 181 | _raise_winerror( |
| 182 | get_last_error(), | 182 | get_last_error(), |
| 183 | 'Error opening symblic link \"%s\"'.format(path)) | 183 | 'Error opening symbolic link \"%s\"'.format(path)) |
| 184 | target_buffer = c_buffer(MAXIMUM_REPARSE_DATA_BUFFER_SIZE) | 184 | target_buffer = c_buffer(MAXIMUM_REPARSE_DATA_BUFFER_SIZE) |
| 185 | n_bytes_returned = DWORD() | 185 | n_bytes_returned = DWORD() |
| 186 | io_result = DeviceIoControl(reparse_point_handle, | 186 | io_result = DeviceIoControl(reparse_point_handle, |
| @@ -195,7 +195,7 @@ def readlink(path): | |||
| 195 | if not io_result: | 195 | if not io_result: |
| 196 | _raise_winerror( | 196 | _raise_winerror( |
| 197 | get_last_error(), | 197 | get_last_error(), |
| 198 | 'Error reading symblic link \"%s\"'.format(path)) | 198 | 'Error reading symbolic link \"%s\"'.format(path)) |
| 199 | rdb = REPARSE_DATA_BUFFER.from_buffer(target_buffer) | 199 | rdb = REPARSE_DATA_BUFFER.from_buffer(target_buffer) |
| 200 | if rdb.ReparseTag == IO_REPARSE_TAG_SYMLINK: | 200 | if rdb.ReparseTag == IO_REPARSE_TAG_SYMLINK: |
| 201 | return _preserve_encoding(path, rdb.SymbolicLinkReparseBuffer.PrintName) | 201 | return _preserve_encoding(path, rdb.SymbolicLinkReparseBuffer.PrintName) |
| @@ -204,7 +204,7 @@ def readlink(path): | |||
| 204 | # Unsupported reparse point type | 204 | # Unsupported reparse point type |
| 205 | _raise_winerror( | 205 | _raise_winerror( |
| 206 | ERROR_NOT_SUPPORTED, | 206 | ERROR_NOT_SUPPORTED, |
| 207 | 'Error reading symblic link \"%s\"'.format(path)) | 207 | 'Error reading symbolic link \"%s\"'.format(path)) |
| 208 | 208 | ||
| 209 | 209 | ||
| 210 | def _preserve_encoding(source, target): | 210 | def _preserve_encoding(source, target): |
