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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:455:    SETUID_NT("Statting file");       /* No security currently in this function */    fs = file_stat(norm_f);    privs = 0;    if(!stat_cache) return fs;    cache_set("stat_cache", norm_f, ({fs}));    return fs;   }    + //! Normalize DAVLock path identifier. + string resource_id(string path, RequestID|int(0..0) id) + { +  if ((< "Darwin", "Win32" >)[uname()->sysname]) { +  return ::resource_id(lower_case(path), id); +  } +  return ::resource_id(path, id); + } +    //! Convert to filesystem encoding.   //!   //! @note   //! Note that the @expr{"iso-8859-1"@} encoding will perform   //! conversion to utf-8 for wide strings OSes other than NT.   string encode_path( string p )   {    if( path_encoding != "iso-8859-1" )    p = Charset.encoder( path_encoding )->feed( p )->drain();   #ifndef __NT__
Roxen.git/server/modules/filesystems/filesystem.pike:607:    if(query("check_auth") && (!id->conf->authenticate( id ) ) ) {    SIMPLE_TRACE_LEAVE("%s: Authentication required.", id->method);    // FIXME: Sane realm.    // FIXME: Recursion and htaccess?    return    Roxen.http_auth_required("foo",    sprintf("<h1>Permission to '%s' denied</h1>",    id->method), id);    }    TRACE_LEAVE("Fall back to the default write access checks."); -  return ::write_access(encode_path(path), recursive, id); +  return ::write_access(path, recursive, id);   }      array find_dir( string f, RequestID id )   {    array dir;       FILESYSTEM_WERR("find_dir for \""+f+"\"" +    (id->misc->internal_get ? " (internal)" : ""));       string norm_f = real_path(f, id);