wok-next annotate ecryptfs-utils/stuff/patches/fix-stdout-flush.patch @ rev 21307
updated hydra (7.3 -> 9.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Dec 10 10:07:48 2019 +0100 (2019-12-10) |
parents | |
children |
rev | line source |
---|---|
al@21118 | 1 diff -ru ecryptfs-utils-111.orig/src/libecryptfs/key_management.c ecryptfs-utils-111/src/libecryptfs/key_management.c |
al@21118 | 2 --- ecryptfs-utils-111.orig/src/libecryptfs/key_management.c 2015-12-21 22:38:59.000000000 +0200 |
al@21118 | 3 +++ ecryptfs-utils-111/src/libecryptfs/key_management.c 2017-01-31 11:11:55.190995428 +0200 |
al@21118 | 4 @@ -1245,6 +1245,7 @@ |
al@21118 | 5 if (prompt != NULL) { |
al@21118 | 6 printf("%s: ", prompt); |
al@21118 | 7 } |
al@21118 | 8 + fflush(stdout); |
al@21118 | 9 ecryptfs_disable_echo(¤t_settings); |
al@21118 | 10 if (fgets(passphrase, |
al@21118 | 11 ECRYPTFS_MAX_PASSWORD_LENGTH+2, stdin) == NULL) { |
al@21118 | 12 diff -ru ecryptfs-utils-111.orig/src/utils/io.c ecryptfs-utils-111/src/utils/io.c |
al@21118 | 13 --- ecryptfs-utils-111.orig/src/utils/io.c 2015-12-21 22:38:59.000000000 +0200 |
al@21118 | 14 +++ ecryptfs-utils-111/src/utils/io.c 2017-01-31 11:11:34.127379788 +0200 |
al@21118 | 15 @@ -70,6 +70,7 @@ |
al@21118 | 16 int c; |
al@21118 | 17 |
al@21118 | 18 printf("%s: ", prompt); |
al@21118 | 19 + fflush(stdout); |
al@21118 | 20 temp = malloc(length); |
al@21118 | 21 if (!temp) { |
al@21118 | 22 rc = -ENOMEM; |
al@21118 | 23 @@ -122,6 +123,7 @@ |
al@21118 | 24 int rc = 0; |
al@21118 | 25 int c; |
al@21118 | 26 |
al@21118 | 27 + fflush(stdout); |
al@21118 | 28 if (echo == ECRYPTFS_ECHO_OFF) { |
al@21118 | 29 rc = disable_echo(&saved_settings); |
al@21118 | 30 if (rc) |