projects
/
tfcrypt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e48de7c
)
-o: accept "-" as name, do nothing (leave stderr as is)
author
Andrey Rys
<rys@lynxlynx.ru>
Sun, 28 Nov 2021 13:16:56 +0000
(14:16 +0100)
committer
Andrey Rys
<rys@lynxlynx.ru>
Sun, 28 Nov 2021 13:16:56 +0000
(14:16 +0100)
VERSION
patch
|
blob
|
history
tfcrypt.c
patch
|
blob
|
history
diff --git
a/VERSION
b/VERSION
index 21e72e8ac3d7e23bd6532b5f1f4a6bdf8362e6cf..95f9650f0151d7c0d3aecf40355d88effbd5b7a7 100644
(file)
--- a/
VERSION
+++ b/
VERSION
@@
-1
+1
@@
-4
8
+4
9
diff --git
a/tfcrypt.c
b/tfcrypt.c
index aa7db33eacba393d5f52be7495bdd184ac2a919b..4eb2b04cc5d620af0741ed66af20c1f7998d54e1 100644
(file)
--- 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);