Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix timestamps on files for pkg rgeister
Baptiste Daroussin committed 9 years ago
commit e43420770a64beff97ea67a1d40b097cbcaa8763
parent 4025f58
1 file changed +3 -0
modified libpkg/pkg_add.c
@@ -1316,6 +1316,9 @@ pkg_add_fromdir(struct pkg *pkg, const char *src)
			f->perm = st.st_mode & ~S_IFMT;
		if (f->uid == 0)
			f->uid = st.st_uid;
+
		f->time[0] = st.st_atim;
+
		f->time[1] = st.st_mtim;
+


		if (S_ISLNK(st.st_mode)) {
			readlinkat(pkg->rootfd, RELATIVE_PATH(f->path), target, sizeof(target));