lib/package_remove.c: simplify link relative check.
This commit is contained in:
		| @@ -111,7 +111,7 @@ symlink_target(struct xbps_handle *xhp, const char *path) | |||||||
| 		return NULL; | 		return NULL; | ||||||
| 	} | 	} | ||||||
| 	lnk[sb.st_size] = '\0'; | 	lnk[sb.st_size] = '\0'; | ||||||
| 	if ((strncmp(lnk, "../", 3) == 0) || strchr(lnk, '/') == NULL) { | 	if (lnk[0] != '/') { | ||||||
| 		char *p, *dname; | 		char *p, *dname; | ||||||
|  |  | ||||||
| 		/* relative */ | 		/* relative */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user