Compare commits

..

2 Commits

Author SHA1 Message Date
Dadoum
a808d2977c
Merge pull request #25 from kabiroberai/kabir/fix-perms
Fix permission issues
2024-11-17 01:57:22 +01:00
Kabir Oberai
d65041b1e4 Fix permission issues 2024-11-16 19:55:14 -05:00

View File

@ -420,13 +420,13 @@ class AnisetteService {
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 = [
"result": "ProvisioningSuccess",
"adi_pb": Base64.encode(
cast(ubyte[]) file.read(
adi.provisioningPath()
.buildPath("adi.pb")
)
cast(ubyte[]) file.read(adiPath)
)
];
} catch (Exception ex) {