diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2019-12-20 10:58:48 +1000 |
---|---|---|
committer | Pavel Shilovsky <pshilov@microsoft.com> | 2020-09-03 10:35:18 -0700 |
commit | 9bd8c8dba414333a5e8acccebc1689b28d92f7c7 (patch) | |
tree | debfcd1cdc44b7f72d78896cf2ce8a2dd50d2ad5 /smbinfo | |
parent | 422f0e98161326de824db8ee8148559f801b7b71 (diff) | |
download | cifs-utils-9bd8c8dba414333a5e8acccebc1689b28d92f7c7.tar.gz cifs-utils-9bd8c8dba414333a5e8acccebc1689b28d92f7c7.tar.bz2 cifs-utils-9bd8c8dba414333a5e8acccebc1689b28d92f7c7.zip |
smbinfo: remove invalid arguments to ioctl method
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Diffstat (limited to 'smbinfo')
-rwxr-xr-x | smbinfo | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -443,7 +443,7 @@ def cmd_filefsfullsizeinfo(args): qi = QueryInfoStruct(info_type=0x2, file_info_class=7, input_buffer_length=32) try: fd = os.open(args.file, os.O_RDONLY) - total, caller_avail, actual_avail, sec_per_unit, byte_per_sec = qi.ioctl(fd, CIFS_QUERY_INFO, '<QQQII') + total, caller_avail, actual_avail, sec_per_unit, byte_per_sec = qi.ioctl(fd, '<QQQII') except Exception as e: print("syscall failed: %s"%e) return False @@ -540,7 +540,7 @@ def cmd_getcompression(args): qi = QueryInfoStruct(info_type=0x9003c, flags=PASSTHRU_FSCTL, input_buffer_length=2) try: fd = os.open(args.file, os.O_RDONLY) - ctype = qi.ioctl(fd, CIFS_QUERY_INFO, '<H')[0] + ctype = qi.ioctl(fd, '<H')[0] except Exception as e: print("syscall failed: %s"%e) return False |