change parameter of windows file permission utility function

This commit is contained in:
dvvvvvv 2020-02-04 19:33:41 +09:00 committed by Abin Simon
parent 218a867570
commit e01238c09d

View file

@ -13,7 +13,7 @@ use super::{Owner, Permissions};
const BUF_SIZE: u32 = 256;
pub fn get_file_data(path: &PathBuf) -> Result<(Owner, Permissions), io::Error> {
pub fn get_file_data(path: &Path) -> Result<(Owner, Permissions), io::Error> {
// Overall design:
// This function allocates some data with GetNamedSecurityInfoW,
// manipulates it only through WinAPI calls (treating the pointers as