X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=tfcrypt.c;h=6b9055f346b7def9984a34863a86cc15cff6f577;hb=f98c367a4cf1ed9f0c6d7620e3f1988596945495;hp=df7cc29f130d485b3e11ff0007615171a573e7f4;hpb=1b12ee27233bd358a40406b5a7799230647c5ab1;p=tfcrypt.git diff --git a/tfcrypt.c b/tfcrypt.c index df7cc29..6b9055f 100644 --- a/tfcrypt.c +++ b/tfcrypt.c @@ -37,7 +37,7 @@ static void open_log(const char *logfile) fd = open(logfile, O_WRONLY | O_CREAT | O_LARGEFILE | O_TRUNC, 0666); if (fd == -1) xerror(NO, NO, YES, "%s", logfile); xclose(2); - if (dup2(fd, 2) == -1) xerror(NO, NO, YES, "dup2(%d, 2) for %s", fd, logfile); + if (dup2(fd, 2) == -1) xexit(2); xclose(fd); do_statline_dynamic = NO; }