mirror of
https://github.com/nmap/nmap.git
synced 2025-12-24 00:19:01 +00:00
Replace instances of bin.pack('A', x), which is equivalent to tostring(x), and a no-op on strings
This commit is contained in:
@@ -1945,9 +1945,8 @@ NFS = {
|
||||
return false, "FsStat: No filehandle received"
|
||||
end
|
||||
|
||||
data = bin.pack("A", file_handle)
|
||||
packet = comm:EncodePacket(nil, NFS.Procedure[comm.version].FSSTAT,
|
||||
{type = Portmap.AuthType.UNIX}, data)
|
||||
{type = Portmap.AuthType.UNIX}, file_handle)
|
||||
|
||||
if (not(comm:SendPacket(packet))) then
|
||||
return false, "FsStat: Failed to send data"
|
||||
|
||||
Reference in New Issue
Block a user