Repository navigation
Conversation
|
I had opened #2355 for the same two lines before noticing this one, and closed it as a duplicate. Copying the verification here in case it saves you a step -- the change is correct and I don't want the data to go to waste. Three shares configured with Two observations that may be useful for the review: This aligns SMB2 with SMB1, it doesn't invent a convention. The SMB1 handlers already coerce in both places (
One nit on the test, take it or leave it: it asserts the value round-trips as an int, which it will. Asserting the specific |
Fixes #2271
Convert configured SMB share types to integers before assigning them to the SRVS
SHARE_INFO_1response fields.Share types are stored as strings by
ConfigParser. Passing those strings directly to the NDRDWORDfield caused every share to be reported asSTYPE_DISKTREE(0).Regression tests now verify disk, printer, and IPC share types.