Branch: Tag:

2001-12-21

2001-12-21 13:09:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now ignores access_as_user for internal requests.
Fixes [bug 2640 (#2640)].

Rev: server/modules/filesystems/filesystem.pike:1.116

7:   inherit "module";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.115 2001/12/21 12:31:38 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.116 2001/12/21 13:09:17 grubba Exp $";   constant thread_safe=1;      #include <module.h>
249:    (!id->misc->internal_get && sizeof (filter (internal_files, glob, (f/"/")[-1])))      #define SETUID(X) \ -  if( access_as_user ) \ +  if( access_as_user && !id->misc->internal_get) \    { \    User uid = id->conf->authenticate( id,access_as_user_db ); \    if( access_as_user_throw && !uid ) \
259:    }      #define SETUID_TRACE(X,LEVELS) \ -  if( access_as_user ) \ +  if( access_as_user && !id->misc->internal_get) \    { \    User uid = id->conf->authenticate( id,access_as_user_db ); \    if( access_as_user_throw && !uid ) { \
273:    }      #define SETUID_NT(X) \ -  if( access_as_user ) \ +  if( access_as_user && !id->misc->internal_get ) \    { \    User uid = id->conf->authenticate( id,access_as_user_db ); \    if( uid && uid->uid() ) \