Displaying 1 result from an estimated 1 matches for "can_renam".
Did you mean:
can_rename
2002 Feb 25
3
PATCH: Samba/Win2K renaming bug
...g %s\n", ret ? "True" : "False"));
unlock_share_entry(conn, dev, inode);
SAFE_FREE(old_shares);
return(ret);
--- ../samba-2.2.3a/source/smbd/reply.c Sat Feb 2 16:46:56 2002
+++ source/smbd/reply.c Mon Feb 25 00:02:37 2002
@@ -3621,12 +3621,19 @@
static NTSTATUS can_rename(char *fname,connection_struct *conn)
{
- if (!CAN_WRITE(conn))
+ DEBUG(4, ("can_rename: checking %s\n", fname));
+
+ if (!CAN_WRITE(conn)) {
+ DEBUG(4, ("can_rename: cannot write\n"));
return NT_STATUS_ACCESS_DENIED;
+ }
- if (!check_file_sharing(conn,fnam...