git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1020b21
)
base64-in: Ignore garbage characters in input.
author
Richard Jones
<rjones@redhat.com>
Wed, 2 Jun 2010 14:10:38 +0000
(15:10 +0100)
committer
Richard Jones
<rjones@redhat.com>
Wed, 2 Jun 2010 14:33:02 +0000
(15:33 +0100)
On RHEL 5 you have to specify the -i option to get the
external 'base64' command to ignore \n characters. (The
Fedora version seems to ignore these characters anyway).
Add this option so the tests can pass on RHEL 5.
daemon/base64.c
patch
|
blob
|
history
diff --git
a/daemon/base64.c
b/daemon/base64.c
index
89bf437
..
1d2d1d0
100644
(file)
--- a/
daemon/base64.c
+++ b/
daemon/base64.c
@@
-42,7
+42,7
@@
do_base64_in (const char *file)
FILE *fp;
char *cmd;
- if (asprintf_nowarn (&cmd, "base64 -d > %R", file) == -1) {
+ if (asprintf_nowarn (&cmd, "base64 -d
-i
> %R", file) == -1) {
err = errno;
cancel_receive ();
errno = err;