diff options
author | Carl Lerche <me@carllerche.com> | 2015-02-27 22:41:32 -0800 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-02-27 22:41:32 -0800 |
commit | 5d7f9c618655472654b79eeb22a9d13ec89035e7 (patch) | |
tree | f58dfdaa402cca333e4e5ce17aba097d3177e62a /src/unistd.rs | |
parent | e8a58c83a50ef7e197767b5a491050ae91c9e503 (diff) | |
download | nix-5d7f9c618655472654b79eeb22a9d13ec89035e7.zip |
Temporarily remove mount
Diffstat (limited to 'src/unistd.rs')
-rw-r--r-- | src/unistd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd.rs b/src/unistd.rs index 47eb667a..a54bba3a 100644 --- a/src/unistd.rs +++ b/src/unistd.rs @@ -361,7 +361,7 @@ mod linux { use {NixError, NixResult, NixPath}; pub fn pivot_root<P1: ?Sized + NixPath, P2: ?Sized + NixPath>( - new_root: P1, put_old: P2) -> NixResult<()> { + new_root: &P1, put_old: &P2) -> NixResult<()> { let res = try!(try!(new_root.with_nix_path(|new_root| { put_old.with_nix_path(|put_old| { unsafe { |