r7882: Looks like a large patch - but what it actually does is make Samba
[ira/wip.git] / source3 / modules / vfs_cap.c
index 18fa04533f0bbd46045ca1dbe45fa687a2faa4be..de61f41f3c9dbc6fdb26d2648cc26d9dd4ae7788 100644 (file)
@@ -79,11 +79,11 @@ static int cap_open(vfs_handle_struct *handle, connection_struct *conn, const ch
        return SMB_VFS_NEXT_OPEN(handle, conn, capname, flags, mode);
 }
 
-static int cap_rename(vfs_handle_struct *handle, connection_struct *conn, const char *old, const char *new)
+static int cap_rename(vfs_handle_struct *handle, connection_struct *conn, const char *oldname, const char *newname)
 {
        pstring capold, capnew;
-       capencode(capold, old);
-       capencode(capnew, new);
+       capencode(capold, oldname);
+       capencode(capnew, newname);
 
        return SMB_VFS_NEXT_RENAME(handle, conn, capold, capnew);
 }