mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Opens the file read-only when setting the timestamp.
This commit is contained in:
parent
adc4f196fa
commit
9f26763ec6
1 changed files with 1 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ void state_nano(struct snapraid_state* state)
|
|||
|
||||
/* open it */
|
||||
/* O_NOFOLLOW: do not follow links to ensure to open the real file */
|
||||
f = open(path, O_WRONLY | O_BINARY | O_NOFOLLOW);
|
||||
f = open(path, O_RDONLY | O_BINARY | O_NOFOLLOW);
|
||||
if (f == -1) {
|
||||
/* LCOV_EXCL_START */
|
||||
fprintf(stderr, "Error opening file '%s'. %s.\n", path, strerror(errno));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue