Merge pull request #25 from kabiroberai/kabir/fix-perms

Fix permission issues
This commit is contained in:
Dadoum 2024-11-17 01:57:22 +01:00 committed by GitHub
commit a808d2977c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -420,13 +420,13 @@ class AnisetteService {
adi.endProvisioning(session, Base64.decode(ptm), Base64.decode(tk)); adi.endProvisioning(session, Base64.decode(ptm), Base64.decode(tk));
auto adiPath = adi.provisioningPath().buildPath("adi.pb");
file.setAttributes(adiPath, 384); // 0600 = rw for owner
response = [ response = [
"result": "ProvisioningSuccess", "result": "ProvisioningSuccess",
"adi_pb": Base64.encode( "adi_pb": Base64.encode(
cast(ubyte[]) file.read( cast(ubyte[]) file.read(adiPath)
adi.provisioningPath()
.buildPath("adi.pb")
)
) )
]; ];
} catch (Exception ex) { } catch (Exception ex) {