chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b7f44df
)
plymouth: fix ply proto endianess issues
author
Lennart Poettering
<lennart@poettering.net>
Tue, 1 Nov 2011 13:20:31 +0000
(14:20 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 1 Nov 2011 13:20:31 +0000
(14:20 +0100)
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
src/tty-ask-password-agent.c
patch
|
blob
|
history
diff --git
a/src/tty-ask-password-agent.c
b/src/tty-ask-password-agent.c
index 43d008fc7038278588116578eaf67051d5231094..13481b29e950f337c726cce28dd184aba1acde93 100644
(file)
--- 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));
continue;
memcpy(&size, buffer+1, sizeof(size));
+ size = le32toh(size);
if (size+5 > sizeof(buffer)) {
r = -EIO;
goto finish;
if (size+5 > sizeof(buffer)) {
r = -EIO;
goto finish;