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.
This commit is contained in:
Norman Feske 2019-11-21 16:11:59 +01:00
parent 077fa355ce
commit 573b6d3345
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ struct Noux::Vfs_io_channel : Io_channel
Registered_no_delete<Vfs_io_waiter>
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;