s3: get_share_mode_lock->get_existing_share_mode_lock
[ira/wip.git] / source3 / smbd / reply.c
index b026d34c671559e328463bde6391471a77321ce2..eebd77d3efa7df7dbcca191e63c84045c2bf7325 100644 (file)
@@ -6205,7 +6205,7 @@ NTSTATUS rename_internals_fsp(connection_struct *conn,
                status = NT_STATUS_ACCESS_DENIED;
        }
 
-       lck = get_share_mode_lock(talloc_tos(), fsp->file_id);
+       lck = get_existing_share_mode_lock(talloc_tos(), fsp->file_id);
 
        /*
         * We have the file open ourselves, so not being able to get the