X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfcrypt.c;h=4eb2b04cc5d620af0741ed66af20c1f7998d54e1;hb=13cc886eb2edfe7be4e65067be6df01e2f08436a;hp=6b9055f346b7def9984a34863a86cc15cff6f577;hpb=f98c367a4cf1ed9f0c6d7620e3f1988596945495;p=tfcrypt.git diff --git a/tfcrypt.c b/tfcrypt.c index 6b9055f..4eb2b04 100644 --- a/tfcrypt.c +++ b/tfcrypt.c @@ -34,6 +34,8 @@ static void open_log(const char *logfile) { int fd; + if (!strcmp(logfile, "-")) return; + fd = open(logfile, O_WRONLY | O_CREAT | O_LARGEFILE | O_TRUNC, 0666); if (fd == -1) xerror(NO, NO, YES, "%s", logfile); xclose(2); @@ -332,6 +334,8 @@ _baddfname: do_full_key = YES; else if (!strcmp(s, "showsecrets")) show_secrets = YES; + else if (!strcmp(s, "finished")) + show_when_done = YES; else if (!strncmp(s, "logfile", 7) && *(s+7) == '=') open_log(s+8); else if (!strncmp(s, "iobs", 4) && *(s+4) == '=') {