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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a ChiliMoon 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.123 2004/05/22 11:08:54 _cvs_stephen Exp $"; + constant cvs_version = "$Id: filesystem.pike,v 1.124 2004/05/22 11:10:30 _cvs_stephen Exp $";   constant thread_safe = 1;      #include <module.h>   #include <stat.h>   #include <request_trace.h>   #include <roxen.h>      // NGSERVER: Make an API where a module can send back an error token which is   // then substituted with the apropriate message for the protocol and locale.   // This would enable us to theme other error pages than the now special case 404.
Roxen.git/server/modules/filesystems/filesystem.pike:1391:    }       if (size < 0) {    mapping|int(0..1) res;    if (mappingp(res = write_access(combine_path(oldf, "../"), 1, id)) ||    (res && mappingp(res = write_access(oldf, 1, id)))) {    SIMPLE_TRACE_LEAVE("DELETE: Recursive write access denied.");    return res;    }   #if 0 -  report_notice(LOCALE(64,"DELETING the directory %s.\n"), f); +  report_notice("DELETING the directory %O.\n", f);   #endif       accesses++;       SETUID_TRACE("Deleting directory", 0);       int start_ms_size = id->multi_status_size();    recursive_rm(f, query_location() + oldf, res, id);       if (!rm(f) && errno() != System.ENOENT) {