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

version» Context lines:

Roxen.git/server/modules/filesystems/filesystem.pike:1:   // This is a roxen module. (c) Informationsv√§varna AB 1996.      // 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.    - string cvs_version= "$Id: filesystem.pike,v 1.15 1997/06/10 19:08:01 grubba Exp $"; + string cvs_version= "$Id: filesystem.pike,v 1.16 1997/06/11 22:30:40 marcus Exp $";      #include <module.h>   #include <roxen.h>   #include <stat.h>      #if DEBUG_LEVEL > 20   # ifndef FILESYSTEM_DEBUG   # define FILESYSTEM_DEBUG   # endif   #endif
Roxen.git/server/modules/filesystems/filesystem.pike:340:    id->my_fd->set_nonblocking(got_put_data, 0, done_with_put);    return http_pipe_in_progress();    break;       case "DELETE":    if(!QUERY(delete) || size==-1)    {    id->misc->error_code = 405;    return 0;    } -  if(QUERY(check_auth) && !id->misc->auth_ok) +  if(QUERY(check_auth) && (!id->auth || !id->auth[0]))    return http_low_answer(403, "<h1>Permission to DELETE file denied</h1>");    -  report_error("DELETING the file "+f+"\n"); +  report_notice("DELETING the file "+f+"\n");    accesses++;       if (((int)id->misc->uid) && ((int)id->misc->gid)) {    privs=((program)"privs")("Deleting file", id->misc->uid, id->misc->gid );    }       if(!rm(f))    {    id->misc->error_code = 405;    return 0;