cifsd-team / ksmbd

ksmbd kernel server(SMB/CIFS server)
151 stars 23 forks source link

ksmbd: fix detection of the ipc share name #569

Closed atheik closed 1 year ago

atheik commented 1 year ago

Shares beginning with "IPC$" are treated as the ipc share even though only "IPC$" exactly is special. Fix detection of the ipc share name by using strcmp() instead of strncmp().

The bug was discussed at https://github.com/cifsd-team/ksmbd-tools/pull/250#issuecomment-1194753509.

Signed-off-by: atheik \atteh.mailbox@gmail.com

namjaejeon commented 1 year ago

Applied, Thanks for your work!