Blob Blame History Raw
From 3327fb6346f076c67897e51598b7576e1be4110a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Wed, 12 Feb 2020 12:36:11 +0100
Subject: [PATCH 2/4] backup: remove authselect.conf when restoring
 non-authselect configuration

Non-authselect configuration does not contain authselect.conf so this file
should be of course removed.
---
 src/lib/authselect_backup.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/authselect_backup.c b/src/lib/authselect_backup.c
index 68fca2721c64f7bbb3f04d69800b2d29f49ad1f6..58529626da9adb112a64a662c6bcc60b036a9a2d 100644
--- a/src/lib/authselect_backup.c
+++ b/src/lib/authselect_backup.c
@@ -236,6 +236,7 @@ static errno_t
 authselect_restore_system_configuration(const char *path)
 {
     struct selinux_safe_copy table[] = {
+        {FILE_CONFIG,      PATH_CONFIG_FILE},
         {FILE_SYSTEM,      PATH_SYMLINK_SYSTEM},
         {FILE_PASSWORD,    PATH_SYMLINK_PASSWORD},
         {FILE_FINGERPRINT, PATH_SYMLINK_FINGERPRINT},
-- 
2.24.1