Roxen.git / server / modules / filesystems / filesystem.pike

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1444:    id->misc->error_code = 405;    TRACE_LEAVE("MOVE: Dest file on other filesystem.");    return(0);    }    new_uri = new_uri[sizeof(mountpoint)..];    string moveto = real_path(new_uri, id);       // Workaround for Linux, Tru64 and FreeBSD.    if (has_suffix(moveto, "/")) {    moveto = moveto[..sizeof(moveto)-2]; + #if constant(System.normalize_path) +  } else { +  // normalize_path() may have adjusted the case of +  // the destination filename, so restore it. +  moveto = combine_path(moveto, "..", basename(new_uri)); + #endif    }       if (!dotfiles && sizeof(filter(new_uri/"/", has_prefix, "."))) {    TRACE_LEAVE("Path contains .-file or .-directory.");    return 0;    }    if (FILTER_INTERNAL_FILE (new_uri, id)) {    id->misc->error_code = 405;    TRACE_LEAVE("MOVE to internal file is disallowed");    return 0;