xbps-create: handle correctly another case of relative symlinks.

This commit is contained in:
Juan RP committed 2015-02-19 09:44:09 +01:00
1 parent 9c47bc0b1a
commit 69e3a50e75
2 files changed
+30 -1

No files matched your search

+1 -1
View File
@@ -283,7 +283,7 @@ ftw_cb(const char *fpath, const struct stat *sb, int type, struct FTW *ftwbuf _u
* Check if symlink is absolute or relative; on the former
* make it absolute for the target object.
*/
if (strncmp(buf, "../", 3) == 0) {
if (strstr(buf, "./")) {
p = realpath(fpath, NULL);
if (p == NULL) {
/*