Skip to content
Snippets Groups Projects
Commit 49b7a5f4 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix types when compiling for Redox

parent 7f38ffac
No related branches found
No related tags found
No related merge requests found
[dependencies.std]
features = ["panic_unwind", "backtrace"]
#[dependencies.test]
#stage = 1
use Result;
use libc::chown;
use libc::{chown, gid_t, uid_t};
use std::io::{Error, Write};
use std::ffi::{CString, OsStr};
......@@ -71,7 +71,7 @@ impl FileConfig {
// chown
let c_path = CString::new(path.as_os_str().as_bytes()).unwrap();
let ret = unsafe {
chown(c_path.as_ptr(), uid, gid)
chown(c_path.as_ptr(), uid as uid_t, gid as gid_t)
};
// credit to uutils
if ret == 0 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment