X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfcrypt.c;h=4eb2b04cc5d620af0741ed66af20c1f7998d54e1;hb=13cc886eb2edfe7be4e65067be6df01e2f08436a;hp=aa7db33eacba393d5f52be7495bdd184ac2a919b;hpb=e48de7c114fc724a6c1e45fd8716dc6111d01372;p=tfcrypt.git diff --git a/tfcrypt.c b/tfcrypt.c index aa7db33..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);