[systemd-commits] src/tty-ask-password-agent.c

Lennart Poettering lennart at kemper.freedesktop.org
Tue Nov 1 06:21:45 PDT 2011


 src/tty-ask-password-agent.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit bb53abeb8c3407ea250be69bc43510b03c0df3da
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Nov 1 14:20:31 2011 +0100

    plymouth: fix ply proto endianess issues
    
    Plymouth enforces LE even for the local Ply proto, hence we should do
    the conversion properly for BE arch compat.
    
    Tracked down by Harald Hoyer.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=744415

diff --git a/src/tty-ask-password-agent.c b/src/tty-ask-password-agent.c
index 43d008f..13481b2 100644
--- a/src/tty-ask-password-agent.c
+++ b/src/tty-ask-password-agent.c
@@ -206,6 +206,7 @@ static int ask_password_plymouth(
                                 continue;
 
                         memcpy(&size, buffer+1, sizeof(size));
+                        size = le32toh(size);
                         if (size+5 > sizeof(buffer)) {
                                 r = -EIO;
                                 goto finish;



More information about the systemd-commits mailing list