diff options
-rw-r--r-- | ChangeLog.txt | 2 | ||||
-rw-r--r-- | pseudo_util.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 6d91bb3..36a1927 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -5,6 +5,8 @@ to take a 0 to indicate "always debug", because we want that message unconditionally, and I don't want near-identical calls to diag() and debug(). + * (seebs) Fix a lurking stray slash that could happen while + resolving absolute symlinks. 2018-04-02: * (seebs) Change default copyright notice in guts to diff --git a/pseudo_util.c b/pseudo_util.c index a5e68f1..b46417d 100644 --- a/pseudo_util.c +++ b/pseudo_util.c @@ -706,7 +706,7 @@ pseudo_append_element(char *newpath, char *root, size_t allocated, char **pcurre linkbuf[linklen] = '\0'; /* absolute symlink means start over! */ if (*linkbuf == '/') { - current = newpath + 1; + current = newpath; } else { /* point back at the end of the previous path... */ current -= (elen + 1); |