Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: Sandboxfs 0.1.0
Date: Wed, 19 Jun 2019 16:05:54 +0200	[thread overview]
Message-ID: <20190619140554.sbI3f6xDQAy48CTi2YaJcdWcEpUDesQbYLkV58xI8sk@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12534@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

New comment by abenson on void-packages repository

https://github.com/void-linux/void-packages/pull/12534#issuecomment-503575845
Comment:
    --- src/nodes/mod.rs.orig
    +++ src/nodes/mod.rs
    @@ -173,11 +173,11 @@
         }
         let size = size.unwrap();
     
    -    let result = if size > ::std::i64::MAX as u64 {
    -        warn!("truncate request got size {}, which is too large (exceeds i64's MAX)", size);
    +    let result = if size > ::nix::libc::off_t::max_value() as u64 {
    +        warn!("truncate request got size {}, which is too large (exceeds off_t's MAX)", size);
             Err(nix::Error::invalid_argument())
         } else {
    -        try_path(path, |p| unistd::truncate(p, size as i64))
    +        try_path(path, |p| unistd::truncate(p, size as nix::libc::off_t))
         };
         if result.is_ok() {
             attr.size = size;
    --- src/nodes/conv.rs.orig
    +++ src/nodes/conv.rs
    @@ -69,7 +69,7 @@
         } 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 file type as returned by the file system to a FUSE file type.


  parent reply	other threads:[~2019-06-19 14:05 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-18 19:49 [PR PATCH] " voidlinux-github
2019-06-18 19:50 ` voidlinux-github
2019-06-18 19:50 ` voidlinux-github
2019-06-18 20:04 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-18 20:04 ` voidlinux-github
2019-06-18 20:09 ` voidlinux-github
2019-06-18 20:09 ` voidlinux-github
2019-06-18 20:15 ` voidlinux-github
2019-06-18 20:15 ` voidlinux-github
2019-06-19 14:05 ` voidlinux-github [this message]
2019-06-19 14:07 ` voidlinux-github
2019-06-19 14:07 ` voidlinux-github
2019-06-19 14:14 ` voidlinux-github
2019-06-19 14:17 ` voidlinux-github
2019-06-20 12:39 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-20 12:39 ` voidlinux-github
2019-06-21  9:55 ` [PR PATCH] [Merged]: " voidlinux-github

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190619140554.sbI3f6xDQAy48CTi2YaJcdWcEpUDesQbYLkV58xI8sk@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).