acl: use /tape/device instead of /tape/drive and /tape/changer

This commit is contained in:
Dietmar Maurer
2021-03-05 10:06:19 +01:00
parent 90e16be3ae
commit ee33795b72
4 changed files with 13 additions and 20 deletions

View File

@ -346,14 +346,8 @@ pub fn check_acl_path(path: &str) -> Result<(), Error> {
return Ok(());
}
match components[1] {
"drive" => {
// /tape/drive/{name}
if components_len <= 3 {
return Ok(());
}
}
"changer" => {
// /tape/changer/{name}
"device" => {
// /tape/device/{name}
if components_len <= 3 {
return Ok(());
}