diff options
Diffstat (limited to 'setcifsacl.c')
-rw-r--r-- | setcifsacl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/setcifsacl.c b/setcifsacl.c index d832cec..4c83476 100644 --- a/setcifsacl.c +++ b/setcifsacl.c @@ -52,6 +52,7 @@ #include "cifsacl.h" #include "idmap_plugin.h" +#include <assert.h> enum setcifsacl_actions { ActUnknown = -1, @@ -332,6 +333,7 @@ copy_sec_desc_with_sid(const struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd, bufsize = size; /* set the pointers for source sids */ + assert(maction == ActSetOwner || maction == ActSetGroup); if (maction == ActSetOwner) { owner_sid_ptr = sid; group_sid_ptr = (struct cifs_sid *)((char *)pntsd + gsidoffset); |