aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo_util.c
diff options
context:
space:
mode:
authorSeebs <seebs@seebs.net>2018-04-13 15:21:13 -0500
committerSeebs <seebs@seebs.net>2018-04-13 15:21:13 -0500
commit3a48dc4373d65bf1203da4899b4dc2bc17993a26 (patch)
treeb340497ef025415ddf058d0a74bf4548ec280c45 /pseudo_util.c
parent691a2304c8c29a3b7d5977908ef82aaf188f5ba0 (diff)
downloadpseudo-3a48dc4373d65bf1203da4899b4dc2bc17993a26.tar.gz
pseudo-3a48dc4373d65bf1203da4899b4dc2bc17993a26.tar.bz2
pseudo-3a48dc4373d65bf1203da4899b4dc2bc17993a26.zip
Fix one more stray slash
After the rest of the restandardization on "path does not have to be slash-terminated", I missed the case where you get an absolute symlink, which could result in a path starting with an extra slash. Signed-off-by: Seebs <seebs@seebs.net>
Diffstat (limited to 'pseudo_util.c')
-rw-r--r--pseudo_util.c2
1 files changed, 1 insertions, 1 deletions
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);