uuidd -r -n 2 failed with "Unexpected reply length from server 36". Fixed by this patch. Signed-off-by: Petr Uzel <petr.uzel@xxxxxxx> --- misc-utils/uuidd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 716a582..2c8d2ca 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -213,7 +213,7 @@ static int call_daemon(const char *socket_path, int op, char *buf, *num = -1; } if ((ret > 0) && (op == 5)) { - if (*num >= (int) sizeof(int)) + if (reply_len >= (int) sizeof(int)) memcpy(buf, num, sizeof(int)); else *num = -1; -- 1.7.1 Petr -- Petr Uzel IRC: ptr_uzl @ freenode
Attachment:
pgp2SumgwjsUI.pgp
Description: PGP signature