[gnome-keyring] daemon: Fix lapse where the login password is read in	pointer-sized chunks
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-keyring] daemon: Fix lapse where the login password is read in	pointer-sized chunks
- Date: Mon, 23 Sep 2013 15:04:41 +0000 (UTC)
commit 5c2a67ee425b12fb5b141d145c7bf0a36042257b
Author: Lars Seipel <ls slrz net>
Date:   Thu Sep 19 22:42:32 2013 +0200
    daemon: Fix lapse where the login password is read in pointer-sized chunks
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708483
 daemon/gkd-main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gkd-main.c b/daemon/gkd-main.c
index 1d10132..d193727 100644
--- a/daemon/gkd-main.c
+++ b/daemon/gkd-main.c
@@ -510,7 +510,7 @@ read_login_password (int fd)
        int r, len = 0;
 
        for (;;) {
-               r = read (fd, buf, sizeof (buf));
+               r = read (fd, buf, MAX_BLOCK);
                if (r < 0) {
                        if (errno == EAGAIN)
                                continue;
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]