summaryrefslogtreecommitdiff
path: root/src/unistd.rs
diff options
context:
space:
mode:
authorCarl Lerche <me@carllerche.com>2015-02-27 22:41:32 -0800
committerCarl Lerche <me@carllerche.com>2015-02-27 22:41:32 -0800
commit5d7f9c618655472654b79eeb22a9d13ec89035e7 (patch)
treef58dfdaa402cca333e4e5ce17aba097d3177e62a /src/unistd.rs
parente8a58c83a50ef7e197767b5a491050ae91c9e503 (diff)
downloadnix-5d7f9c618655472654b79eeb22a9d13ec89035e7.zip
Temporarily remove mount
Diffstat (limited to 'src/unistd.rs')
-rw-r--r--src/unistd.rs2
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 {