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 - 1998, Idonex AB.      // 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 "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.47 1999/02/01 03:31:54 peter Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.48 1999/12/22 16:59:50 jhs Exp $";   constant thread_safe=1;         #include <module.h>   #include <roxen.h>   #include <stat.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG
Roxen.git/server/modules/filesystems/filesystem.pike:359:    /* FIXME: Should probably keep prestates etc too.    * /grubba 1999-01-14    */    string new_query =    http_encode_string(id->not_query[..sizeof(id->not_query)-2]) +    (id->query?("?" + id->query):"");    TRACE_LEAVE("Redirecting to \"" + new_query + "\"");    return http_redirect(new_query, id);    }    -  if(!id->misc->internal_get && QUERY(.files) +  if(!id->misc->internal_get && !QUERY(.files)    && (tmp = (id->not_query/"/")[-1])    && tmp[0] == '.') {    TRACE_LEAVE("Is .-file");    return 0;    }   #ifndef THREADS    object privs;    if (((int)id->misc->uid) && ((int)id->misc->gid) &&    (QUERY(access_as_user))) {    // NB: Root-access is prevented.