From 8fdef1a81c29d955d9e6b7550f8d7ebbe4e44f12 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 18 Feb 2019 13:11:42 +0100 Subject: [PATCH] fix typo: confi{g}dir Signed-off-by: Wolfgang Bumiller --- src/config.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index e648a203..b0442a1d 100644 --- a/src/config.rs +++ b/src/config.rs @@ -15,7 +15,7 @@ use crate::buildcfg; /// For security reasons, we want to make sure they are set correctly: /// * owned by 'backup' user/group /// * nobody else can read (mode 0700) -pub fn check_confidir_permissions() -> Result<(), Error> { +pub fn check_configdir_permissions() -> Result<(), Error> { let cfgdir = buildcfg::CONFIGDIR; let (backup_uid, backup_gid) = tools::getpwnam_ugid("backup")?; @@ -48,7 +48,7 @@ pub fn create_configdir() -> Result<(), Error> { match nix::unistd::mkdir(cfgdir, Mode::from_bits_truncate(0o700)) { Ok(()) => {}, Err(nix::Error::Sys(nix::errno::Errno::EEXIST)) => { - check_confidir_permissions()?; + check_configdir_permissions()?; return Ok(()); }, Err(err) => bail!("unable to create configuration directory '{}' - {}", cfgdir, err),