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.52 1999/05/05 20:19:59 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.53 1999/05/05 20:20:31 grubba 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:924:    if(!rm(f))    {    privs = 0;    id->misc->error_code = 405;    TRACE_LEAVE("DELETE: Failed");    return 0;    }    privs = 0;    deletes++;    -  if (id->misc->quota_obj) { +  if (id->misc->quota_obj && (size > 0)) {    id->misc->quota_obj->deallocate(oldf, size);    }       TRACE_LEAVE("DELETE: Success");    return http_low_answer(200,(f+" DELETED from the server"));       default:    TRACE_LEAVE("Not supported");    return 0;    }    report_error("Not reached..\n");    TRACE_LEAVE("Not reached");    return 0;   }      string query_name()   {    return sprintf("<i>%s</i> mounted on <i>%s</i>", query("searchpath"),    query("mountpoint"));   }