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.38 1998/05/15 06:10:00 neotron Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.39 1998/05/15 10:26:36 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:551:    chmods++;       TRACE_ENTER("CHMOD: Accepted", 0);       if (stat_cache) {    cache_set("stat_cache", f, 0);    }   #ifdef DEBUG    report_notice(sprintf("CHMODing file "+f+" to 0%o\n", id->misc->mode));   #endif -  array err = catch(chmod(f, id->misc->mode)); +  array err = catch(chmod(f, id->misc->mode & 0777));    privs = 0;       if(err)    {    id->misc->error_code = 403;    TRACE_LEAVE("CHMOD: Failure");    TRACE_LEAVE("Failure");    return 0;    }    TRACE_LEAVE("CHMOD: Success");