DEVEL15-windows-smb-ioctl-setacl-20080721
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 21 Jul 2008 10:20:38 +0000 (10:20 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 21 Jul 2008 10:20:38 +0000 (10:20 +0000)
LICENSE MIT

setacl does not support the options structure.  just call parse ioctl path.
bug introduced during ioctl refactoring.

(cherry picked from commit ab1ddbe803005004978b86516e4bcd68ef668e67)

src/WINNT/afsd/smb_ioctl.c

index 69a3b2f..429ba4d 100644 (file)
@@ -1121,19 +1121,7 @@ smb_IoctlSetACL(smb_ioctl_t *ioctlp, cm_user_t *userp)
 
     cm_InitReq(&req);
 
-    optionsp = cm_IoctlGetQueryOptions(&ioctlp->ioctl, userp);
-    if (optionsp && CM_IOCTL_QOPTS_HAVE_LITERAL(optionsp))
-        flags |= (optionsp->literal ? CM_PARSE_FLAG_LITERAL : 0);
-
-    if (optionsp && CM_IOCTL_QOPTS_HAVE_FID(optionsp)) {
-        cm_fid_t fid;
-        cm_SkipIoctlPath(&ioctlp->ioctl);
-        cm_SetFid(&fid, optionsp->fid.cell, optionsp->fid.volume, 
-                  optionsp->fid.vnode, optionsp->fid.unique);
-        code = cm_GetSCache(&fid, &scp, userp, &req);
-    } else {
-        code = smb_ParseIoctlPath(ioctlp, userp, &req, &scp, flags);
-    }
+    code = smb_ParseIoctlPath(ioctlp, userp, &req, &scp, flags);
     if (code) 
         return code;