Revert "Stop converting relative symlinks to absolute."

This reverts commit 9ae3638429.

This change is ok, but cannot be used right now because all existing
binpkgs were created with an old xbps-create(8).
This commit is contained in:
Juan RP
2015-02-19 11:11:58 +01:00
parent 9ae3638429
commit a05e039cce
7 changed files with 105 additions and 20 deletions

View File

@ -48,7 +48,7 @@
*
* This header documents the full API for the XBPS Library.
*/
#define XBPS_API_VERSION "20150219-2"
#define XBPS_API_VERSION "20150219-1"
#ifndef XBPS_VERSION
#define XBPS_VERSION "UNSET"
@ -1945,14 +1945,17 @@ char *xbps_pubkey2fp(struct xbps_handle *xhp, xbps_data_t pubkey);
char *xbps_sanitize_path(const char *src);
/**
* Returns the target file of the symlink \a symlink.
* Returns a sanitized target file of \a path without the rootdir component.
*
* @param[in] symlink The path to a symlink.
* @param[in] xhp The pointer to an xbps_handle struct.
* @param[in] path path component.
* @param[in] target The stored target file of a symlink.
*
* @return The target file in a buffer.
* @return The sanitized path in a buffer.
* The returned buffer must be free(3)d when it's no longer necessary.
*/
char *xbps_symlink_target(const char *symlink);
char *xbps_symlink_target(struct xbps_handle *xhp, const char *path,
const char *target);
/*@}*/