This commit is contained in:
Marcin Mielniczuk
2019-09-08 08:15:33 +02:00
committed by Jakub Konka
parent b09f7e860f
commit 3fd0cdcc12
5 changed files with 17 additions and 13 deletions

View File

@@ -442,8 +442,7 @@ pub(crate) fn path_filestat_set_times(
};
let fd = resolved.dirfd().as_raw_fd().into();
utimensat(fd, resolved.path(), &atim, &mtim, atflags)
.map_err(|e| host_impl::errno_from_nix(e.as_errno().unwrap()))
utimensat(fd, resolved.path(), &atim, &mtim, atflags).map_err(Into::into)
}
pub(crate) fn path_symlink(old_path: &str, resolved: PathGet) -> Result<()> {