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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. Copyright © 1996 - 2000, Roxen IS.      // This is a virtual "file-system".   // It will be located somewhere in the name-space of the server.   // Also inherited by some of the other filesystems.      inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.107 2001/08/16 15:27:05 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.108 2001/08/23 23:00:26 per Exp $";   constant thread_safe=1;      #include <module.h>   #include <roxen.h>   #include <stat.h>   #include <request_trace.h>         //<locale-token project="mod_filesystem">LOCALE</locale-token>   #define LOCALE(X,Y) _DEF_LOCALE("mod_filesystem",X,Y)
Roxen.git/server/modules/filesystems/filesystem.pike:200: Inside #if constant(system.normalize_path)
   normalized_path = system.normalize_path(path + ".");    } else {    normalized_path = system.normalize_path(path);    }   #ifdef __NT__    normalized_path += "\\";   #else /* !__NT__ */    normalized_path += "/";   #endif /* __NT__ */    }) { -  report_error(LOCALE(0, "Path verification of %s failed.\n"), mountpoint); +  report_error(LOCALE(1, "Path verification of %s failed.\n"), mountpoint);    normalized_path = path;    }   #else /* !constant(system.normalize_path) */    normalized_path = path;   #endif /* constant(system.normalize_path) */    FILESYSTEM_WERR("Online at "+query("mountpoint")+" (path="+path+")");    cache_expire("stat_cache");   }      string query_location()
Roxen.git/server/modules/filesystems/filesystem.pike:488: Inside #if constant(system.normalize_path)
   f = norm_f = NORMALIZE_PATH(f = decode_path(path + f));   #if constant(system.normalize_path)    if (!has_prefix(norm_f, normalized_path) &&   #ifdef __NT__    (norm_f+"\\" != normalized_path)   #else /* !__NT__ */    (norm_f+"/" != normalized_path)   #endif /* __NT__ */    ) {    errors++; -  report_error(LOCALE(0, "Path verification of %O failed:\n" +  report_error(LOCALE(52, "Path verification of %O failed:\n"    "%O is not a prefix of %O\n"    ), oldf, normalized_path, norm_f);    TRACE_LEAVE("");    TRACE_LEAVE("Permission denied.");    return http_low_answer(403, "<h2>File exists, but access forbidden "    "by user</h2>");    }       /* Adjust not_query */    id->not_query = mountpoint + replace(norm_f[sizeof(normalized_path)..],