r23092: Merge Herb's changes to tdbtool and Jeremy's fox
authorGerald Carter <jerry@samba.org>
Wed, 23 May 2007 15:28:47 +0000 (15:28 +0000)
committerGerald Carter <jerry@samba.org>
Wed, 23 May 2007 15:28:47 +0000 (15:28 +0000)
for renames with the cifs fs client.

WHATSNEW.txt
source/smbd/reply.c
source/tdb/tools/tdbtool.c

index a93358a47db34f47f978bcb1cc760b902c86479d..0e6cdb58b2cae51cec0b94797e8edd7dd95680b9 100644 (file)
@@ -54,6 +54,7 @@ o   Jeremy Allison <jra@samba.org>
       about that we retry the lock every 10 seconds instead of waiting
       for the standard select timeout.
     * BUG 4637: Fix samlogon reply regression that broke domain logons.
+    * Fix rename for Linux cifs fs client.
 
 
 o   Alexander Bokovoy <ab@samba.org>
@@ -85,6 +86,11 @@ o   Volker Lendecke <vl@samba.org>
       uninitialized variables.
 
 
+o   Herb Lewis <herb@samba.org>
+    * Update connection structure definition for tdbtool display
+      output.
+
+
 o   Derrell Lipman <derrell@samba.org>
     * BUG 4601: Fix smbc_getxattr() to properly return the required
       size of the buffer needed to contain the extended attributes.
index 37a49756e383bdea0c09ef383e0b0ae72003183f..bb4965adf6aa2c0d36723072fce3beebca42d720 100644 (file)
@@ -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;
index bcfb96adc095a8c467e05b252920a31823e4e7fc..2f549ef91b92a2c1a8e8443da48eeb245c1e1bd0 100644 (file)
@@ -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);