Branch: Tag:

2011-12-27

2011-12-27 18:47:14 by Martin Stjernholm <mast@lysator.liu.se>

Recognize both the physical and the logical path to the server dir.

May avoid showing/storing absolute paths in some cases when the server path
contains symlinks.

Rev: server/base_server/roxen.pike:1.1100
Rev: server/config_interface/actions/debug_info.pike:1.48
Rev: server/etc/modules/RXML.pmod/module.pmod:1.425
Rev: server/etc/modules/RoxenDebug.pmod:1.14
Rev: server/protocols/http.pike:1.642

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1099 2011/12/27 15:37:29 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1100 2011/12/27 18:47:13 mast Exp $";      //! @appears roxen   //!
114:    string cwd = getcwd() + "/";    if (has_prefix (fname, cwd))    fname = fname[sizeof (cwd)..]; +  else if (has_prefix (fname, roxenloader.server_dir)) +  fname = fname[sizeof (roxenloader.server_dir)..];       return ({fname, line});   }