mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 13:55:47 +03:00
Fix open and use the flags variable.
This commit is contained in:
parent
4a2677a539
commit
17b39a78c1
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
|
||||||
if (st->uid == getuid() || geteuid() == 0) {
|
if (st->uid == getuid() || geteuid() == 0) {
|
||||||
flags |= O_NOATIME;
|
flags |= O_NOATIME;
|
||||||
}
|
}
|
||||||
sfp = csync_vio_open(ctx, suri, O_RDONLY|O_NOFOLLOW, 0);
|
sfp = csync_vio_open(ctx, suri, flags, 0);
|
||||||
if (sfp == NULL) {
|
if (sfp == NULL) {
|
||||||
if (errno == ENOMEM) {
|
if (errno == ENOMEM) {
|
||||||
rc = -1;
|
rc = -1;
|
||||||
|
|
Loading…
Reference in a new issue