From 573b6d3345065a3764c2339d862c80f01854ef92 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Thu, 21 Nov 2019 16:11:59 +0100 Subject: [PATCH] noux: fix condition for mtime update This is a follow-up patch for "noux: don't update mtimes for read-only files". It eliminates warning messages during Sculpt's prepare step when 'cp' tries to update the mtimes of the source files. --- repos/ports/src/noux/vfs_io_channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repos/ports/src/noux/vfs_io_channel.h b/repos/ports/src/noux/vfs_io_channel.h index 7f8bad759..e86babc29 100644 --- a/repos/ports/src/noux/vfs_io_channel.h +++ b/repos/ports/src/noux/vfs_io_channel.h @@ -88,7 +88,7 @@ struct Noux::Vfs_io_channel : Io_channel Registered_no_delete vfs_io_waiter(_vfs_io_waiter_registry); - if (_fh.status_flags() != Sysio::OPEN_MODE_RDONLY) { + if ((_fh.status_flags() & Sysio::OPEN_MODE_ACCMODE) != Sysio::OPEN_MODE_RDONLY) { for (;;) { if (_fh.fs().update_modification_timestamp(&_fh, ts)) { break;