diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-04-16 19:21:20 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-04-16 19:21:20 +0000 |
commit | bc5753970d69cbe76b9c2ee7087ef23817f0731e (patch) | |
tree | 1c821394696a5534260c176a194f052e814ff695 /libdiskfs/lookup.c | |
parent | 1acfd91623d3565addb6d01b68f2cfda52cbb131 (diff) |
(diskfs_lookup): But only if not readonly.
Diffstat (limited to 'libdiskfs/lookup.c')
-rw-r--r-- | libdiskfs/lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c index 058d0f69..0acad1d0 100644 --- a/libdiskfs/lookup.c +++ b/libdiskfs/lookup.c @@ -121,7 +121,8 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type, } err = diskfs_lookup_hard (dp, name, type, np, ds, cred); - dp->dn_set_atime = 1; + if (!diskfs_readonly) + dp->dn_set_atime = 1; if (err && err != ENOENT) return err; |