Date: Mon, 10 Jan 2000 09:25:56 -0500 (EST) From: Daniel Hagan <dhagan@cs.vt.edu> To: bugs@freebsd.org Cc: j@uriah.heep.sax.de, schweikh@noc.dfn.de Subject: bin/4238 - chpass time delay sensitivity [PATCH] Message-ID: <Pine.OSF.4.02.10001100920220.1760-100000@vtopus.cs.vt.edu>
next in thread | raw e-mail | index | archive | help
J"org wrote a long time ago: > Fix: include st_mtimensec into the consideration. st_mtimensec is only available if _POSIX_SOURCE is defined. However, defining this in the Makefile breaks lots of other things. The stat struct includes st_mtimespec.tv_nsec, which should be equivalent (I think). Here's a patch that uses this field. Are there any reasons to avoid using this? (is this a non-standard field that might disappear?) Index: edit.c =================================================================== RCS file: /src/cvs/src/usr.bin/chpass/edit.c,v retrieving revision 1.16 diff -r1.16 edit.c 75c75,76 < if (begin.st_mtime == end.st_mtime) { --- > if ((begin.st_mtimespec.tv_nsec == end.st_mtimespec.tv_nsec) && > (begin.st_size == end.st_size)) { [uuencoded version to preserve whitespace] begin 600 pr4238.patch M26YD97@Z(&5D:70N8PH]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T] M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]"E)#4R!F:6QE M.B`O<W)C+V-V<R]S<F,O=7-R+F)I;B]C:'!A<W,O961I="YC+'8*<F5T<FEE M=FEN9R!R979I<VEO;B`Q+C$V"F1I9F8@+7(Q+C$V(&5D:70N8PHW-6,W-2PW M-@H\(`D):68@*&)E9VEN+G-T7VUT:6UE(#T](&5N9"YS=%]M=&EM92D@>PHM M+2T*/B`)"6EF("@H8F5G:6XN<W1?;71I;65S<&5C+G1V7VYS96,@/3T@96YD M+G-T7VUT:6UE<W!E8RYT=E]N<V5C*2`F)@H^(`D)("`@("AB96=I;BYS=%]S 7:7IE(#T](&5N9"YS=%]S:7IE*2D@>PHF ` end -- Daniel Hagan Computer Science CSE dhagan@cs.vt.edu http://www.cs.vt.edu/~dhagan/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.02.10001100920220.1760-100000>