projects
/
silc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7d84090
)
Fixed ignored file mode in write_file_mode.
author
Pekka Riikonen
<priikone@silcnet.org>
Sun, 9 Nov 2003 15:37:47 +0000
(15:37 +0000)
committer
Pekka Riikonen
<priikone@silcnet.org>
Sun, 9 Nov 2003 15:37:47 +0000
(15:37 +0000)
lib/silcutil/silcfileutil.c
patch
|
blob
|
history
diff --git
a/lib/silcutil/silcfileutil.c
b/lib/silcutil/silcfileutil.c
index 52112ee3903bac053bcdffd982b34faa6e2ff128..23d2c17c12901a0e1c9b56886bc3bdc172ba88d4 100644
(file)
--- a/
lib/silcutil/silcfileutil.c
+++ b/
lib/silcutil/silcfileutil.c
@@
-4,7
+4,7
@@
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 200
2
Pekka Riikonen
+ Copyright (C) 1997 - 200
3
Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-101,7
+101,7
@@
int silc_file_writefile_mode(const char *filename, const char *buffer,
flags |= O_BINARY;
#endif /* O_BINARY */
flags |= O_BINARY;
#endif /* O_BINARY */
- if ((fd = open(filename, flags,
0644
)) == -1) {
+ if ((fd = open(filename, flags,
mode
)) == -1) {
SILC_LOG_ERROR(("Cannot open file %s for writing: %s", filename,
strerror(errno)));
return -1;
SILC_LOG_ERROR(("Cannot open file %s for writing: %s", filename,
strerror(errno)));
return -1;