summaryrefslogtreecommitdiff
path: root/smbinfo
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2020-12-29 12:00:33 -0800
committerPavel Shilovsky <pshilov@microsoft.com>2020-12-30 17:41:27 -0800
commit16af2c4ac8e9643030deb88e030fa8d9a0f280b9 (patch)
treee31fe15663fd022e11922f24bbdcd7bd67d4c37b /smbinfo
parent85a7865d6e21b5b58d0c733d6c4c7bf3581e78f8 (diff)
downloadcifs-utils-16af2c4ac8e9643030deb88e030fa8d9a0f280b9.tar.gz
cifs-utils-16af2c4ac8e9643030deb88e030fa8d9a0f280b9.tar.bz2
cifs-utils-16af2c4ac8e9643030deb88e030fa8d9a0f280b9.zip
smbinfo: fix fsctl-getobjid output
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Diffstat (limited to 'smbinfo')
-rwxr-xr-xsmbinfo2
1 files changed, 1 insertions, 1 deletions
diff --git a/smbinfo b/smbinfo
index a625b80..9752963 100755
--- a/smbinfo
+++ b/smbinfo
@@ -527,7 +527,7 @@ def print_filestandardinfo(buf):
print("Delete Directory: %d"%del_dir)
def guid_to_str(buf):
- return "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x"%struct.unpack_from('<ISSBBBBBBBB', buf, 0)
+ return "%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x"%struct.unpack_from('<IHHBBBBBBBB', buf, 0)
def cmd_fsctl_getobjid(args):
qi = QueryInfoStruct(info_type=0x9009c, file_info_class=5, flags=PASSTHRU_FSCTL, input_buffer_length=64)