summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2019-02-15 12:59:01 +0000
committerintrigeri <intrigeri@boum.org>2019-02-15 12:59:01 +0000
commit17ac976586a04e7f6ec7d9cf8f8541ac5c712fea (patch)
tree82f0f53112e8efa636dfc3bdd1c26723734a16eb
parenteb1d978eaeade8914bd248107a5c74c4c958a42d (diff)
Give persistence.conf.bak the same permissions as persistence.conf (refs: #16461).bugfix/16461-lost-persistence-config
-rw-r--r--lib/Tails/Persistence/Configuration/ConfigFile.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Tails/Persistence/Configuration/ConfigFile.pm b/lib/Tails/Persistence/Configuration/ConfigFile.pm
index de06d9a..aebff9e 100644
--- a/lib/Tails/Persistence/Configuration/ConfigFile.pm
+++ b/lib/Tails/Persistence/Configuration/ConfigFile.pm
@@ -95,6 +95,7 @@ Copy the on-disk configuration file to a backup file.
method backup () {
$self->config_file_path->copy($self->backup_config_file_path);
+ $self->backup_config_file_path->chmod(0600);
}
=head2 save