From 8bd2808108cb13c12fbccb97e4e0bf81e7e585ba Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Sun, 8 Nov 2015 10:37:26 +0100 Subject: [PATCH] lib/package_alternatives.c: fix wrong /. handling for normalizing paths. --- lib/package_alternatives.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/package_alternatives.c b/lib/package_alternatives.c index 8d1512a4..d69db12b 100644 --- a/lib/package_alternatives.c +++ b/lib/package_alternatives.c @@ -71,7 +71,7 @@ reinit: else if (strncmp(p, "/./", 3) == 0 || strncmp(p, "/.", 3) == 0) { memmove(p, p+2, strlen(p+2) + 1); } - else if (*p == '/') + if (*p == '/') seg = p; } return path;