void-linux / xbps

The X Binary Package System (XBPS)
https://voidlinux.org/xbps/
Other
822 stars 124 forks source link

bin/xbps-rindex/remove-obsoletes.c: always `opendir()` pwd #520

Closed classabbyamp closed 1 year ago

classabbyamp commented 2 years ago

If repodir is given as a relative path, it will not work because it will try to open the dir relative to itself because it already chdir()ed into repodir. This fixes xbps-rindex -r when relative paths are specified.

fixes #519