projects
/
tfcrypt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-O ro: readonly files, never write anything (except to standard streams)
[tfcrypt.git]
/
tfc_random.c
diff --git
a/tfc_random.c
b/tfc_random.c
index 9ef321d43304e51fbe35ce29c301d13339a64877..0a529d401b53410f08ef97d436a6fc4b578ab1f6 100644
(file)
--- a/
tfc_random.c
+++ b/
tfc_random.c
@@
-143,8
+143,7
@@
void gen_write_bytes(const char *foutname, tfc_fsize offset, tfc_fsize nrbytes)
fd = 1;
foutname = TFC_STDOUT_NAME;
}
fd = 1;
foutname = TFC_STDOUT_NAME;
}
- else fd = open(foutname, O_WRONLY | O_CREAT | O_LARGEFILE | write_flags, 0666);
- if (fd == -1) xerror(NO, NO, YES, "%s", foutname);
+ else fd = xopen(foutname, O_WRONLY | O_CREAT | O_LARGEFILE | write_flags);
if (offset) {
if (lseek(fd, offset, SEEK_SET) == -1)
if (offset) {
if (lseek(fd, offset, SEEK_SET) == -1)