shithub: riscv

Download patch

ref: 07af9be3a94690b3f4141d6919224937b83c3f40
parent: 56e71d5260182e2ac32e09767b7c9440048a1d2f
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Thu Jun 20 09:15:26 EDT 2019

cwfs: fix root access time qid path comparsion

--- a/sys/src/cmd/cwfs/9p2.c
+++ b/sys/src/cmd/cwfs/9p2.c
@@ -1471,7 +1471,7 @@
 		if(error = mkqidcmp(&file->qid, d))
 			goto out;
 
-		if(d->qid.path == QPROOT)	/* stat of root gives time */
+		if(d->qid.path == (QPROOT|QPDIR))	/* stat of root gives time */
 			d->atime = time(nil);
 	}
 	len = mkdir9p2(&dir, d, data);