Commit 1affd75f authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

server: Allow setting delete disposition on a read-only directory.

parent b95a23e8
......@@ -2307,8 +2307,8 @@ static void set_fd_disposition( struct fd *fd, int unlink )
return;
}
/* can't unlink files we don't have permission to access */
if (unlink && !(st.st_mode & (S_IWUSR | S_IWGRP | S_IWOTH)))
/* can't unlink files we don't have permission to write */
if (unlink && !(st.st_mode & (S_IWUSR | S_IWGRP | S_IWOTH)) && !S_ISDIR(st.st_mode))
{
set_error( STATUS_CANNOT_DELETE );
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment