View | Details | Raw Unified | Return to bug 25777
Collapse All | Expand All

(-)kern/kern_exec.c (+13 lines)
Lines 64-69 Link Here
64
64
65
#include <machine/reg.h>
65
#include <machine/reg.h>
66
66
67
#include <ufs/ufs/quota.h>
68
#include <ufs/ufs/inode.h>
69
#include <ufs/ufs/ufs_extern.h>
70
67
static long *exec_copyout_strings __P((struct image_params *));
71
static long *exec_copyout_strings __P((struct image_params *));
68
72
69
static long ps_strings = PS_STRINGS;
73
static long ps_strings = PS_STRINGS;
Lines 165-170 Link Here
165
	VOP_UNLOCK(imgp->vp, 0, p);
169
	VOP_UNLOCK(imgp->vp, 0, p);
166
	if (error)
170
	if (error)
167
		goto exec_fail_dealloc;
171
		goto exec_fail_dealloc;
172
173
	/*
174
	 * At this point, it counts as an access, whether it succeeds or
175
	 * fails.  Ensure that atime gets updated if needed
176
	 */
177
	if ((imgp->vp->v_mount->mnt_flag & MNT_NOATIME) == 0) {
178
		VTOI(imgp->vp)->i_flag |= IN_ACCESS;
179
		ufs_itimes(imgp->vp);
180
	}
168
181
169
	/*
182
	/*
170
	 * Loop through list of image activators, calling each one.
183
	 * Loop through list of image activators, calling each one.

Return to bug 25777