Searched refs:symlink_name (Results 1 – 1 of 1) sorted by relevance
/DragonOS/user/apps/test-chown/src/ |
H A D | main.rs | 61 fn test_lchown(symlink_name: &str, new_uid: uid_t, new_gid: gid_t) -> Result<(), Error> { in test_lchown() 62 let c_symlink = CString::new(symlink_name)?; in test_lchown() 68 print_file_owner_group(symlink_name)?; in test_lchown() 76 let symlink_name = "/mnt/myramfs/testsymlink"; in main() localVariable 96 std::os::unix::fs::symlink(filename, symlink_name)?; in main() 97 println!("Created symlink: {}", symlink_name); in main() 109 test_lchown(symlink_name, new_uid, new_gid)?; in main() 112 test_fchownat(symlink_name, new_uid, new_gid, AT_SYMLINK_NOFOLLOW)?; in main()
|