From 86f09bfedd214b0e217144a0a0d79576f81619f6 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 29 Jan 2014 12:13:18 +0100 Subject: [PATCH] - renamed setting --- data/default-config | 2 +- doc/snapper-configs.xml.in | 4 ++-- doc/snapper.xml.in | 5 +++-- snapper/Snapper.cc | 12 ++++++------ snapper/Snapper.h | 4 ++-- snapper/SnapperDefines.h | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/data/default-config b/data/default-config index 2c5f0c52..76ddd47e 100644 --- a/data/default-config +++ b/data/default-config @@ -12,7 +12,7 @@ ALLOW_GROUPS="" # sync users and groups from ALLOW_USERS and ALLOW_GROUPS to .snapshots # directory -SYNC_ACLS="no" +SYNC_ACL="no" # start comparing pre- and post-snapshot in background after creating diff --git a/doc/snapper-configs.xml.in b/doc/snapper-configs.xml.in index 896aa773..8ebf490e 100644 --- a/doc/snapper-configs.xml.in +++ b/doc/snapper-configs.xml.in @@ -77,10 +77,10 @@ - + Defines whether snapper will sync the users and groups from - ALLOW_USERS and ALLOW_GROUPS to the .snapshots + ALLOW_USERS and ALLOW_GROUPS to the ACL of the .snapshots directory. Also see the PERMISSONS section in snapper8. diff --git a/doc/snapper.xml.in b/doc/snapper.xml.in index 54fc1e39..65a08c69 100644 --- a/doc/snapper.xml.in +++ b/doc/snapper.xml.in @@ -505,7 +505,7 @@ setfacl -m u:tux:rx .snapshots - The last method can be performed by snapper, see the SYNC_ACLS setting in + The last method can be performed by snapper, see the SYNC_ACL setting in snapper-configs5. @@ -575,7 +575,8 @@ pam_snapper8, btrfs8, lvm8, - attr5 + attr5, + acl5 diff --git a/snapper/Snapper.cc b/snapper/Snapper.cc index 08fa70b9..090f2001 100644 --- a/snapper/Snapper.cc +++ b/snapper/Snapper.cc @@ -456,17 +456,17 @@ namespace snapper config_info->save(); if (raw.find(KEY_ALLOW_USERS) != raw.end() || raw.find(KEY_ALLOW_GROUPS) != raw.end() || - raw.find(KEY_SYNC_ACLS) != raw.end()) + raw.find(KEY_SYNC_ACL) != raw.end()) { bool sync_acl; - if (config_info->getValue(KEY_SYNC_ACLS, sync_acl) && sync_acl == true) - syncAcls(); + if (config_info->getValue(KEY_SYNC_ACL, sync_acl) && sync_acl == true) + syncAcl(); } } void - Snapper::syncAcls() const + Snapper::syncAcl() const { vector uids; vector users; @@ -494,7 +494,7 @@ namespace snapper } } - syncAcls(uids, gids); + syncAcl(uids, gids); } @@ -529,7 +529,7 @@ namespace snapper void - Snapper::syncAcls(const vector& uids, const vector& gids) const + Snapper::syncAcl(const vector& uids, const vector& gids) const { SDir infos_dir = openInfosDir(); diff --git a/snapper/Snapper.h b/snapper/Snapper.h index 730ac8b6..99ab93e1 100644 --- a/snapper/Snapper.h +++ b/snapper/Snapper.h @@ -158,7 +158,7 @@ namespace snapper void setConfigInfo(const map& raw); - void syncAcls() const; + void syncAcl() const; private: @@ -167,7 +167,7 @@ namespace snapper void loadIgnorePatterns(); - void syncAcls(const vector& uids, const vector& gids) const; + void syncAcl(const vector& uids, const vector& gids) const; ConfigInfo* config_info; diff --git a/snapper/SnapperDefines.h b/snapper/SnapperDefines.h index c26ad10f..8490894c 100644 --- a/snapper/SnapperDefines.h +++ b/snapper/SnapperDefines.h @@ -41,7 +41,7 @@ #define KEY_ALLOW_USERS "ALLOW_USERS" #define KEY_ALLOW_GROUPS "ALLOW_GROUPS" -#define KEY_SYNC_ACLS "SYNC_ACLS" +#define KEY_SYNC_ACL "SYNC_ACL" #endif -- 2.47.3