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.40 1998/05/20 07:43:03 neotron Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.41 1998/05/26 08:41:08 per 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:625:    privs = 0;    errors++;    TRACE_LEAVE("MV: Contains symlinks. Permission denied");    return http_low_answer(403, "<h2>Permission denied.</h2>");    }       TRACE_ENTER("MV: Accepted", 0);       /* Clear the stat-cache for this file */   #ifdef __NT__ -  if(movefrom[-1] == '/') -  movefrom = move_from[..strlen(movefrom)-2]; +  // if(movefrom[-1] == '/') +  // movefrom = move_from[..strlen(movefrom)-2];   #endif    if (stat_cache) {    cache_set("stat_cache", movefrom, 0);    cache_set("stat_cache", f, 0);    }   #ifdef DEBUG    report_notice("Moving file "+movefrom+" to "+ f+"\n");   #endif /* DEBUG */       int code = mv(movefrom, f);