Don't repeat fast-pathing...
[obnox/samba/samba-obnox.git] / source / smbd / posix_acls.c
index 73c2e65c64ae38858866a243708ec5c2c506bfff..5968e3a2d34845b9ee06be54a06bf18da8a2199c 100644 (file)
@@ -4270,7 +4270,7 @@ bool can_delete_file_in_directory(connection_struct *conn, const char *fname)
 
        /* now for ACL checks */
 
-       return can_access_file(conn, dname, &sbuf, FILE_WRITE_DATA);
+       return can_access_file_acl(conn, dname, &sbuf, FILE_WRITE_DATA);
 }
 
 /****************************************************************************