Branch: Tag:

2014-01-09

2014-01-09 10:20:09 by Anders Johansson <anders@roxen.com>

Fixed path display when server path contains symlinks.

This is a bugfix of commit 92dc21b1d1cc2167fc52841d9f88edace5d88dc7 and
solves [bug 6267 (#6267)].

1704:    if (sizeof (ent) && stringp (ent[0]))    if (has_prefix (ent[0], cwd))    file = ent[0] = ent[0][sizeof (cwd)..]; -  else if (has_prefix (ent[0], roxenloader.server_dir)) -  file = ent[0] = ent[0][sizeof (roxenloader.server_dir)..]; +  else if (has_prefix (ent[0], roxenloader.server_dir + "/")) +  file = ent[0] = ent[0][sizeof (roxenloader.server_dir + "/")..];    else    file = ent[0];    if (sizeof (ent) >= 2) line = ent[1];