lib: move conf parsing to lib/conf.c and refactor to not rely on getcwd/chdir
This fixes https://github.com/voidlinux/xbps/issues/158
This commit is contained in:
@@ -594,6 +594,12 @@ struct xbps_handle {
|
||||
* Full path to the xbps configuration directory.
|
||||
*/
|
||||
char confdir[XBPS_MAXPATH+sizeof(XBPS_SYSCONF_PATH)];
|
||||
/**
|
||||
* @var confdir
|
||||
*
|
||||
* Full path to the xbps configuration directory.
|
||||
*/
|
||||
char sysconfdir[XBPS_MAXPATH+sizeof(XBPS_SYSDEFCONF_PATH)];
|
||||
/**
|
||||
* @var rootdir
|
||||
*
|
||||
|
Reference in New Issue
Block a user