diff options
Diffstat (limited to 'bin/ykfde.c')
-rw-r--r-- | bin/ykfde.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/ykfde.c b/bin/ykfde.c index 56a2832..8a766e5 100644 --- a/bin/ykfde.c +++ b/bin/ykfde.c @@ -312,6 +312,10 @@ int main(int argc, char **argv) { fprintf(stderr, "Failed to write challenge to file.\n"); goto out50; } + if (fsync(challengefiletmp) < 0) { + fprintf(stderr, "Failed to sync file to disk.\n"); + goto out50; + } challengefiletmp = close(challengefiletmp); /* now that the new challenge has been written to file... |