summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-23 15:28:47 +0000
committerGerald Carter <jerry@samba.org>2007-05-23 15:28:47 +0000
commita7385f33bf7d7efc9bea78caeca94c43e5670749 (patch)
treece97372e4eda49f3b219bf817c4e4b3ffdcffbb0 /source
parent7eb61aedbd729cd91a84c958c3abf2ddb9c77915 (diff)
downloadsamba-a7385f33bf7d7efc9bea78caeca94c43e5670749.tar.gz
samba-a7385f33bf7d7efc9bea78caeca94c43e5670749.tar.xz
samba-a7385f33bf7d7efc9bea78caeca94c43e5670749.zip
r23092: Merge Herb's changes to tdbtool and Jeremy's fox
for renames with the cifs fs client.
Diffstat (limited to 'source')
-rw-r--r--source/smbd/reply.c4
-rw-r--r--source/tdb/tools/tdbtool.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index 37a49756e38..bb4965adf6a 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -4260,10 +4260,10 @@ NTSTATUS rename_internals_fsp(connection_struct *conn, files_struct *fsp, pstrin
return NT_STATUS_OBJECT_NAME_COLLISION;
}
- status = can_rename(conn,newname,attrs,&sbuf);
+ status = can_rename(conn,fsp->fsp_name,attrs,&sbuf);
if (dest_exists && !NT_STATUS_IS_OK(status)) {
- DEBUG(3,("rename_internals: Error %s rename %s -> %s\n",
+ DEBUG(3,("rename_internals_fsp: Error %s rename %s -> %s\n",
nt_errstr(status), fsp->fsp_name,newname));
if (NT_STATUS_EQUAL(status,NT_STATUS_SHARING_VIOLATION))
status = NT_STATUS_ACCESS_DENIED;
diff --git a/source/tdb/tools/tdbtool.c b/source/tdb/tools/tdbtool.c
index bcfb96adc09..2f549ef91b9 100644
--- a/source/tdb/tools/tdbtool.c
+++ b/source/tdb/tools/tdbtool.c
@@ -116,7 +116,7 @@ typedef struct connections_data {
int cnum;
uid_t uid;
gid_t gid;
- char name[24];
+ char servicename[FSTRING_LEN];
char addr[24];
char machine[FSTRING_LEN];
time_t start;
@@ -373,7 +373,7 @@ static int print_conn_data(TDB_DATA dbuf)
printf( "\ndata %d bytes\n", (int)dbuf.dsize);
printf( "pid =%5d ", ((connections_data*)dbuf.dptr)->pid);
printf( "cnum =%10d ", ((connections_data*)dbuf.dptr)->cnum);
- printf( "name =[%s]\n", ((connections_data*)dbuf.dptr)->name);
+ printf( "name =[%s]\n", ((connections_data*)dbuf.dptr)->servicename);
printf( "uid =%5d ", ((connections_data*)dbuf.dptr)->uid);
printf( "addr =[%s]\n", ((connections_data*)dbuf.dptr)->addr);