Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1:   // A vitual server's main configuration   // Copyright © 1996 - 2000, Roxen IS.   //   // German translation by Kai Voigt    - constant cvs_version = "$Id: configuration.pike,v 1.307 2000/05/05 23:29:48 nilsson Exp $"; + constant cvs_version = "$Id$";   constant is_configuration = 1;   #include <module.h>   #include <roxen.h>   #include <request_trace.h>      inherit "basic_defvar";      mapping enabled_modules = ([]);   mapping(string:array(int)) error_log=([]);   
Roxen.git/server/base_server/configuration.pike:1631:    /* loc == file + "/" + subpath + "/"    * and stat_file(".") returns non-zero.    */    TRACE_ENTER(LOCALE->location_module(loc), tmp[1]);    loc=loc[strlen(file)..];    sscanf(loc, "%s/", loc);    dir += ({ loc });    TRACE_LEAVE(LOCALE->added_module_mountpoint());    }    } -  if(!dir) return verbose ? ({0})+locks : ([])[0]; +  if(!dir) { +  TRACE_LEAVE("No directory contents.\n"); +  return verbose ? ({0})+locks : ([])[0]; +  }    if(sizeof(dir))    {    TRACE_LEAVE(LOCALE->returning_file_list(sizeof(dir)));    return dir;    }    TRACE_LEAVE(LOCALE->returning_no_dir());    return 0;   }      // Stat a virtual file.