From bab31af707aab34da9ba2b2975c05d7b3cb568cc Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Fri, 9 Oct 2015 19:22:53 +0200 Subject: cwfs: fix wstat() failing to mark block dirty when noatime is set code assumed the accessdir() call would always mark the block dirty, but this is not the case when noatime flag is enabled. this was reported by michael in bug: "open/with_noatime_option_cwfs_doesnt_preserve_changes_in_file_permissionowner" -- cinap --- sys/src/cmd/cwfs/9p2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/src/cmd/cwfs/9p2.c b/sys/src/cmd/cwfs/9p2.c index 0e9cc57c4..1c51fe03a 100644 --- a/sys/src/cmd/cwfs/9p2.c +++ b/sys/src/cmd/cwfs/9p2.c @@ -1789,6 +1789,7 @@ fs_wstat(Chan* chan, Fcall* f, Fcall*, char* strs) d->uid = uid; d->gid = gid; d->muid = muid; + p->flags |= Bmod; } if(!tsync) accessdir(p, d, FREAD, file->uid); -- cgit v1.2.3