From 7a95e2fb6c581001ff185c9503d1741f293aaeff Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Sat, 23 Mar 1996 04:45:02 +0000 Subject: (read_symlink_hook): Only set NP's atime if !readonly. --- ufs/inode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ufs/inode.c') 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; -- cgit v1.2.3