1
0
Fork 0
mirror of https://github.com/pygos/pkg-utils.git synced 2024-12-22 18:00:49 +01:00

Allow '+' characters in package names

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
This commit is contained in:
David Oberhollenzer 2019-03-01 09:46:16 +01:00
parent 82c888bcbf
commit 55b2d2f0c0

View file

@ -162,7 +162,8 @@ pkg_reader_t *pkg_reader_open_repo(int dirfd, const char *name)
size_t i;
for (i = 0; name[i] != '\0'; ++i) {
if (!isalnum(name[i]) && name[i] != '_' && name[i] != '-') {
if (!isalnum(name[i]) && name[i] != '_' && name[i] != '-' &&
name[i] != '+') {
fprintf(stderr,
"illegal characters in package name '%s'\n",
name);