Fix open and use the flags variable.

This commit is contained in:
Andreas Schneider 2008-11-12 21:14:35 +01:00
parent 4a2677a539
commit 17b39a78c1

View file

@ -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;