Merge pull request #1278 from alexbakker/fix-1077

Pass down the root shell to every SuFile for the Authy importer
This commit is contained in:
Michael Schättgen 2024-03-13 16:24:22 +01:00 committed by GitHub
commit 6d73e5101c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,8 +75,13 @@ public class AuthyImporter extends DatabaseImporter {
JSONArray array;
JSONArray authyArray;
try {
array = readFile(new SuFile(path, String.format("%s.xml", _authFilename)), String.format("%s.key", _authFilename));
authyArray = readFile(new SuFile(path, String.format("%s.xml", _authyFilename)), String.format("%s.key", _authyFilename));
SuFile file1 = new SuFile(path, String.format("%s.xml", _authFilename));
file1.setShell(shell);
SuFile file2 = new SuFile(path, String.format("%s.xml", _authyFilename));
file2.setShell(shell);
array = readFile(file1, String.format("%s.key", _authFilename));
authyArray = readFile(file2, String.format("%s.key", _authyFilename));
} catch (IOException | XmlPullParserException e) {
throw new DatabaseImporterException(e);
}