Ticket #1317: mod_webdav[1].patch

File mod_webdav[1].patch, 0.8 kB (added by henrik.holst2@…, 13 months ago)

fix as patch

  • .c

    old new  
    19631963 
    19641964                                if (0 == rename(con->physical.path->ptr, p->physical.path->ptr)) { 
    19651965#ifdef USE_PROPPATCH 
    1966                                         sqlite3_stmt *stmt = p->conf.stmt_move_uri; 
     1966                                        sqlite3_stmt *stmt = p->conf.stmt_delete_uri; 
     1967 
     1968                                        if (stmt) { 
     1969                                                sqlite3_reset(stmt); 
     1970 
     1971                                                /* bind the values to the delete */ 
     1972                                                sqlite3_bind_text(stmt, 1, 
     1973                                                                  p->uri.path->ptr, 
     1974                                                                  p->uri.path->used - 1, 
     1975                                                                  SQLITE_TRANSIENT); 
     1976 
     1977                                                if (SQLITE_DONE != sqlite3_step(stmt)) 
     1978                                                        log_error_write(srv, __FILE__, __LINE__, "ss", "sql-move failed:", sqlite3_errmsg(p->conf.sql)); 
     1979                                        } 
     1980 
     1981                                        stmt = p->conf.stmt_move_uri; 
    19671982 
    19681983                                        if (stmt) { 
    19691984