mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user