FreeBSD Bugzilla – Attachment 162642 Details for
Bug 204157
lib/libarchive/functional_test:test_write_disk_times failed on a UFS1 filesystem (btime isn't implemented until UFS2)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix for the test on UFS1
0001-Fix-the-libarchive-test-on-ufs1-birthtime-is-1.patch (text/plain), 956 bytes, created by
Andrew Turner
on 2015-10-31 15:06:30 UTC
(
hide
)
Description:
Fix for the test on UFS1
Filename:
MIME Type:
Creator:
Andrew Turner
Created:
2015-10-31 15:06:30 UTC
Size:
956 bytes
patch
obsolete
>From 75fdb565efeadf71fc8d483ed80836bc9a962b93 Mon Sep 17 00:00:00 2001 >From: Charles Root <root@cavium> >Date: Sat, 31 Oct 2015 13:08:37 +0000 >Subject: [PATCH] Fix the libarchive test on ufs1 -- birthtime is -1 > >--- > contrib/libarchive/libarchive/test/main.c | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/contrib/libarchive/libarchive/test/main.c b/contrib/libarchive/libarchive/test/main.c >index cdb8538..3afa2ba 100644 >--- a/contrib/libarchive/libarchive/test/main.c >+++ b/contrib/libarchive/libarchive/test/main.c >@@ -1253,6 +1253,7 @@ assertion_file_time(const char *file, int line, > switch (type) { > case 'a': filet_nsec = st.st_atimespec.tv_nsec; break; > case 'b': filet = st.st_birthtime; >+ if (filet == -1) return (1); /* No birthtime on UFS1 */ > filet_nsec = st.st_birthtimespec.tv_nsec; break; > case 'm': filet_nsec = st.st_mtimespec.tv_nsec; break; > default: fprintf(stderr, "INTERNAL: Bad type %c for file time", type); >-- >2.4.5 >
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 204157
: 162642