Use VFS operations for file I/O.
[tprouty/samba.git] / source / smbd / ipc.c
index 5001b16b352be4dbbcf1d0f730ef9ef8074a5ae2..cdbb4416af998a9ab331bd066629b3cd5671fbb7 100644 (file)
@@ -2005,7 +2005,7 @@ static BOOL api_PrintJobInfo(connection_struct *conn,uint16 vuid,char *param,cha
                                    !become_service(fconn,True))
                                        break;
              
-                               if (dos_rename(fsp->fsp_name,name) == 0) {
+                               if (conn->vfs_ops.rename(dos_to_unix(fsp->fsp_name,False),name) == 0) {
                                        string_set(&fsp->fsp_name,name);
                                }
                                break;