]> git.proxmox.com Git - proxmox-backup.git/commitdiff
remove dead code
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Sep 2021 04:34:44 +0000 (06:34 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 8 Sep 2021 04:34:44 +0000 (06:34 +0200)
backup_user() and backup_group() are now in pbs_config workspace

pbs-datastore/src/lib.rs

index b842519eb4f5f20e0aa07710f95c2e4c0755f132..cfe399218427d46cddd9ac8637a80f29a05bae77 100644 (file)
 //! * / = no interaction
 //! * shared/exclusive from POV of 'starting' process
 
-use anyhow::{format_err, Error};
-
 // Note: .pcat1 => Proxmox Catalog Format version 1
 pub const CATALOG_NAME: &str = "catalog.pcat1.didx";
 
@@ -161,23 +159,6 @@ macro_rules! PROXMOX_BACKUP_READER_PROTOCOL_ID_V1 {
     };
 }
 
-/// Unix system user used by proxmox-backup-proxy
-pub const BACKUP_USER_NAME: &str = "backup";
-/// Unix system group used by proxmox-backup-proxy
-pub const BACKUP_GROUP_NAME: &str = "backup";
-
-/// Return User info for the 'backup' user (``getpwnam_r(3)``)
-pub fn backup_user() -> Result<nix::unistd::User, Error> {
-    nix::unistd::User::from_name(BACKUP_USER_NAME)?
-        .ok_or_else(|| format_err!("Unable to lookup backup user."))
-}
-
-/// Return Group info for the 'backup' group (``getgrnam(3)``)
-pub fn backup_group() -> Result<nix::unistd::Group, Error> {
-    nix::unistd::Group::from_name(BACKUP_GROUP_NAME)?
-        .ok_or_else(|| format_err!("Unable to lookup backup user."))
-}
-
 pub mod backup_info;
 pub mod catalog;
 pub mod cached_chunk_reader;