FreeBSD Bugzilla – Attachment 13586 Details for
Bug 25777
[kernel] [patch] atime not updated on exec
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 761 bytes, created by
Phil Pennock
on 2001-03-13 18:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Phil Pennock
Created:
2001-03-13 18:10:01 UTC
Size:
761 bytes
patch
obsolete
>--- kern/kern_exec.c.old Tue Mar 13 18:20:01 2001 >+++ kern/kern_exec.c Tue Mar 13 18:47:51 2001 >@@ -64,6 +64,10 @@ > > #include <machine/reg.h> > >+#include <ufs/ufs/quota.h> >+#include <ufs/ufs/inode.h> >+#include <ufs/ufs/ufs_extern.h> >+ > static long *exec_copyout_strings __P((struct image_params *)); > > static long ps_strings = PS_STRINGS; >@@ -165,6 +169,15 @@ > VOP_UNLOCK(imgp->vp, 0, p); > if (error) > goto exec_fail_dealloc; >+ >+ /* >+ * At this point, it counts as an access, whether it succeeds or >+ * fails. Ensure that atime gets updated if needed >+ */ >+ if ((imgp->vp->v_mount->mnt_flag & MNT_NOATIME) == 0) { >+ VTOI(imgp->vp)->i_flag |= IN_ACCESS; >+ ufs_itimes(imgp->vp); >+ } > > /* > * Loop through list of image activators, calling each one.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25777
: 13586