FreeBSD Bugzilla – Attachment 22594 Details for
Bug 39163
-nt/-ot in test(1) does not detect if tv_nsec are different
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.00 KB, created by
hburch
on 2002-06-11 20:00:08 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
hburch
Created:
2002-06-11 20:00:08 UTC
Size:
1.00 KB
patch
obsolete
>diff -c /usr/src/bin/test/test.c ./test.c >*** /usr/src/bin/test/test.c Mon Jun 10 21:43:24 2002 >--- ./test.c Mon Jun 10 21:56:13 2002 >*************** >*** 520,540 **** > static int > newerf (const char *f1, const char *f2) > { >! struct stat b1, b2; >! >! return (stat (f1, &b1) == 0 && >! stat (f2, &b2) == 0 && >! b1.st_mtime > b2.st_mtime); > } > > static int > olderf (const char *f1, const char *f2) > { >! struct stat b1, b2; >! >! return (stat (f1, &b1) == 0 && >! stat (f2, &b2) == 0 && >! b1.st_mtime < b2.st_mtime); > } > > static int >--- 520,540 ---- > static int > newerf (const char *f1, const char *f2) > { >! if (stat(f1, &b1) != 0) return 0; >! if (stat(f2, &b2) != 0) return 0; >! >! if (b1.st_mtimespec.tv_sec > b2.st_mtimespec.tv_sec) >! return 1; >! if (b1.st_mtimespec.tv_sec < b2.st_mtimespec.tv_sec) >! return 0; >! >! return (b1.st_mtimespec.tv_nsec > b2.st_mtimespec.tv_nsec); > } > > static int > olderf (const char *f1, const char *f2) > { >! return newerf(f2, f1); > } > > static int
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 39163
: 22594