[systemd-commits] src/shared
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Mon Oct 14 07:15:28 PDT 2013
src/shared/util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit a8ccacf5344c4434b1d5ff3837307acb8fcf93d2
Author: Bastien Nocera <hadess at hadess.net>
Date: Mon Oct 14 08:15:51 2013 +0200
shared/util: Fix glob_extend() argument
glob_extend() would completely fail to work, or return incorrect
data if it wasn't being passed the current getopt "optarg" variable
as it used the global variable, instead of the passed parameters.
diff --git a/src/shared/util.c b/src/shared/util.c
index 54dbace..1822770 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -4461,7 +4461,7 @@ int glob_extend(char ***strv, const char *path) {
char **p;
errno = 0;
- k = glob(optarg, GLOB_NOSORT|GLOB_BRACE, NULL, &g);
+ k = glob(path, GLOB_NOSORT|GLOB_BRACE, NULL, &g);
if (k == GLOB_NOMATCH)
return -ENOENT;
More information about the systemd-commits
mailing list