You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed by changing GENERIC_ALL to GENERIC_WRITE | DELETE in HandleType.ToArgs() (same as case HandleType.Delete), despite the comment in the code! I'm not sure if this fix is generic or specific to the setup at my company, and so I've not bothered with a PR.
case HandleType.Move:
// AccessMask.GENERIC_WRITE is failed in SMB2. Reqired GENERIC_ALL.
result.AccessMask
= AccessMask.GENERIC_WRITE
| AccessMask.DELETE
| AccessMask.SYNCHRONIZE;
result.ShareAccess = ShareAccess.Read;
result.CreateDisposition = CreateDisposition.FILE_OPEN;
The text was updated successfully, but these errors were encountered:
[10:27:40 ERR] Errors: IP address removed: [EzSmb.Transports.Shares.Smb2Share.ExecMove] Create Handle Failed: path removed. NTStatus: STATUS_ACCESS_DENIED
Fixed by changing GENERIC_ALL to GENERIC_WRITE | DELETE in HandleType.ToArgs() (same as case HandleType.Delete), despite the comment in the code! I'm not sure if this fix is generic or specific to the setup at my company, and so I've not bothered with a PR.
case HandleType.Move:
// AccessMask.GENERIC_WRITE is failed in SMB2. Reqired GENERIC_ALL.
result.AccessMask
= AccessMask.GENERIC_WRITE
| AccessMask.DELETE
| AccessMask.SYNCHRONIZE;
result.ShareAccess = ShareAccess.Read;
result.CreateDisposition = CreateDisposition.FILE_OPEN;
The text was updated successfully, but these errors were encountered: