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 - 2001, 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.114 2001/12/21 12:31:45 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.115 2001/12/21 13:10:35 grubba 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:242:   string query_location()   {    return mountpoint;   }         #define FILTER_INTERNAL_FILE(f, id) \    (!id->misc->internal_get && sizeof (filter (internal_files, glob, (f/"/")[-1])))      #define SETUID(X) \ -  if( access_as_user ) \ +  if( access_as_user && !id->misc->internal_get) \    { \    User uid = id->conf->authenticate( id,access_as_user_db ); \    if( access_as_user_throw && !uid ) \    return id->conf->authenticate_throw( id, "User",access_as_user_db);\    if( uid && uid->uid() ) \    privs=Privs(X, uid->uid(), uid->gid() ); \    }      #define SETUID_TRACE(X,LEVELS) \ -  if( access_as_user ) \ +  if( access_as_user && !id->misc->internal_get) \    { \    User uid = id->conf->authenticate( id,access_as_user_db ); \    if( access_as_user_throw && !uid ) { \    int levels = (LEVELS); \    while(levels--) TRACE_LEAVE(""); \    TRACE_LEAVE(X ": Auth required."); \    return id->conf->authenticate_throw( id, "User",access_as_user_db);\    } \    if( uid && uid->uid() ) \    privs=Privs(X, uid->uid(), uid->gid() ); \    }      #define SETUID_NT(X) \ -  if( access_as_user ) \ +  if( access_as_user && !id->misc->internal_get) \    { \    User uid = id->conf->authenticate( id,access_as_user_db ); \    if( uid && uid->uid() ) \    privs=Privs(X, uid->uid(), uid->gid() ); \    }      mixed stat_file( string f, RequestID id )   {    Stat fs;