| Server IP : 82.208.35.60 / Your IP : 216.73.216.238 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/sysutils/fusefs-sandboxfs/files/ |
Upload File : |
Unbreak on i386
error[E0308]: mismatched types
--> src/nodes/conv.rs:72:19
|
72 | Timespec::new(val.tv_sec() as sys::time::time_t, usec)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected i64, found i32
--- src/nodes/conv.rs.orig 2020-04-20 18:46:46 UTC
+++ src/nodes/conv.rs
@@ -69,7 +69,7 @@ pub fn timeval_to_timespec(val: sys::time::TimeVal) ->
} else {
val.tv_usec() as i32
};
- Timespec::new(val.tv_sec() as sys::time::time_t, usec)
+ Timespec::new((val.tv_sec() as sys::time::time_t).into(), usec)
}
/// Converts a `sys::time::TimeVal` object into a `sys::time::TimeSpec`.
@@ -328,6 +328,10 @@ mod tests {
// modified and may not be queryable, so stub them out.
attr.ctime = BAD_TIME;
attr.crtime = BAD_TIME;
+ // Ignore rdev too
+ attr.rdev = 0;
+ // XXX: gid is always 0 when the tests run on tmpfs(5)
+ attr.gid = exp_attr.gid;
assert!(fileattrs_eq(&exp_attr, &attr));
}
@@ -365,6 +369,10 @@ mod tests {
// modified and may not be queryable, so stub them out.
attr.ctime = BAD_TIME;
attr.crtime = BAD_TIME;
+ // Ignore rdev too
+ attr.rdev = 0;
+ // XXX: gid is always 0 when the tests run on tmpfs(5)
+ attr.gid = exp_attr.gid;
assert!(fileattrs_eq(&exp_attr, &attr));
}