summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c6c030b)
This is a fix for the glob command in guestfish which was inadvertently
broken in commit
c359347dd42c9f5b875630537ee3641264826b89.
This also appears to fix:
https://bugzilla.redhat.com/show_bug.cgi?id=635969
glob echo mkfs ext2 /dev/vd[b-t]1 prints garbage
/* guestfish - the filesystem interactive shell
/* guestfish - the filesystem interactive shell
- * Copyright (C) 2009 Red Hat Inc.
+ * Copyright (C) 2009-2010 Red Hat Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
argv[argc] = NULL;
again:
argv[argc] = NULL;
again:
- if (guestfs_get_trace (g)) {
- printf ("%s", argv[0]);
- for (i = 1; i < argc; ++i) {
- argv[i] = globs[i][posn[i]];
- printf (" %s", argv[i]);
- }
- printf ("\n");
- }
+ for (i = 1; i < argc; ++i)
+ argv[i] = globs[i][posn[i]];
if (issue_command (argv[0], &argv[1], NULL) == -1)
*r = -1; /* ... but don't exit */
if (issue_command (argv[0], &argv[1], NULL) == -1)
*r = -1; /* ... but don't exit */