summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-03-23 04:45:02 +0000
committerMiles Bader <miles@gnu.org>1996-03-23 04:45:02 +0000
commit7a95e2fb6c581001ff185c9503d1741f293aaeff (patch)
tree139af38954f315990f9e09d5fb63bcd3e6080331
parent74f5fd6b1777739cbcc58b2d5b2c7690401fc0d4 (diff)
(read_symlink_hook): Only set NP's atime if !readonly.
-rw-r--r--ufs/inode.c6
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;