Displaying 4 results from an estimated 4 matches for "single_element_list".
2012 May 02
4
[PATCH 0/4] fish: Allow the glob command to expand device patterns (RHBZ#635971).
This patch set fixes a two year old bug in guestfish, namely that the
'glob' command does not expand /dev/* patterns.
https://bugzilla.redhat.com/show_bug.cgi?id=635971
Rich.
2016 Mar 07
0
Re: [PATCH v2] Use less stack.
...9; %s --norc -i", shell);
> r = system (buf);
While this is just an example, making it not leak will make it a better
example :)
> diff --git a/fish/glob.c b/fish/glob.c
> index 9fba42e..01b7c6d 100644
> --- a/fish/glob.c
> +++ b/fish/glob.c
> @@ -285,13 +296,19 @@ single_element_list (const char *element)
> return pp;
> }
>
> -static void
> +static int
> glob_issue (char *cmd, size_t argc,
> char ***globs, size_t *posn, size_t *count,
> int *r)
> {
> size_t i;
> - char *argv[argc+1];
> + CLEANUP_FREE cha...
2016 Mar 07
2
[PATCH v2] Use less stack.
...-- a/fish/glob.c
+++ b/fish/glob.c
@@ -37,7 +37,7 @@ static char **expand_devicename (guestfs_h *g, const char *device);
static int add_strings_matching (char **pp, const char *glob, char ***ret, size_t *size_r);
static int add_string (const char *str, char ***ret, size_t *size_r);
static char **single_element_list (const char *element);
-static void glob_issue (char *cmd, size_t argc, char ***globs, size_t *posn, size_t *count, int *r);
+static int glob_issue (char *cmd, size_t argc, char ***globs, size_t *posn, size_t *count, int *r);
int
run_glob (const char *cmd, size_t argc, char *argv[])
@@ -52,12 +...
2016 Mar 06
8
[PATCH 0/5] Use less stack.
Various changes/fixes to use smaller stack frames.
Rich.