Merge branch 'convert-openoptions-cint' of github.com:FedericoPonzi/rust into convert-openoptions-cint

This commit is contained in:
Federico Ponzi 2020-08-31 15:49:27 +02:00
commit 2c9e27b759
No known key found for this signature in database
GPG Key ID: CFA9CCFE5363D0C6

View File

@ -966,7 +966,6 @@ pub fn rename(old: &Path, new: &Path) -> io::Result<()> {
Ok(())
}
pub fn set_perm(p: &Path, perm: FilePermissions) -> io::Result<()> {
let p = cstr(p)?;
cvt_r(|| unsafe { libc::chmod(p.as_ptr(), perm.mode) })?;