diff options
author | Miles Bader <miles@gnu.org> | 1996-03-23 04:45:02 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-03-23 04:45:02 +0000 |
commit | 4046ebcfba13acea67b27e2ecdcd217e6dca80c5 (patch) | |
tree | 0dc0bfdb89019f307704025c360aff3b5e98f085 | |
parent | 4591952861c94f2ae928ac560753b14283aac365 (diff) |
(read_symlink_hook): Only set NP's atime if !readonly.
-rw-r--r-- | ufs/inode.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ufs/inode.c b/ufs/inode.c index 08438e70..81fc8f75 100644 --- a/ufs/inode.c +++ b/ufs/inode.c @@ -1,5 +1,5 @@ /* Inode management routines - Copyright (C) 1994, 1995 Free Software Foundation + Copyright (C) 1994, 1995, 1996 Free Software Foundation This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -411,7 +411,9 @@ read_symlink_hook (struct node *np, return err; bcopy ((dino (np->dn->number))->di_shortlink, buf, np->dn_stat.st_size); - np->dn_set_atime = 1; + + if (! diskfs_readonly) + np->dn_set_atime = 1; diskfs_end_catch_exception (); return 0; |