Skip to content

Commit

Permalink
"encfsctl cat outputs debug information and prompts to stdout #42"
Browse files Browse the repository at this point in the history
Partial fix -- prompts to stderr now instead of stdout (as per upstream)
  • Loading branch information
jetwhiz committed Jun 4, 2016
1 parent 471fdcb commit 5d7a183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion encfs/readpassphrase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags)
return NULL;
}

printf("%s", prompt);
fprintf(stderr, "%s", prompt);
fflush(stdout);

/* try to get a real console */
Expand Down

0 comments on commit 5d7a183

Please sign in to comment.