diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-10-09 19:22:53 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-10-09 19:22:53 +0200 |
commit | bab31af707aab34da9ba2b2975c05d7b3cb568cc (patch) | |
tree | 657c105cc59e644ac5faabc03f97aed18a645db0 /sys/src/cmd | |
parent | 9ec1a07af2537e5485524c8d079a07abfee6f96d (diff) |
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
Diffstat (limited to 'sys/src/cmd')
-rw-r--r-- | sys/src/cmd/cwfs/9p2.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |