summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-06-02 15:10:38 +0100
committerRichard Jones <rjones@redhat.com>2010-06-02 15:33:02 +0100
commit50eed6d20de9b6d16975c3c0bbf6e545f8fba1fe (patch)
treebe330a8fdb8c324dc50d161d6ce9896ba06b9cd1 /daemon
parent1020b212b189968ead013436cac79019fbd8fdad (diff)
downloadlibguestfs-50eed6d20de9b6d16975c3c0bbf6e545f8fba1fe.tar.gz
libguestfs-50eed6d20de9b6d16975c3c0bbf6e545f8fba1fe.tar.xz
libguestfs-50eed6d20de9b6d16975c3c0bbf6e545f8fba1fe.zip
base64-in: Ignore garbage characters in input.
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.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/base64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/base64.c b/daemon/base64.c
index 89bf4379..1d2d1d0f 100644
--- 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;