Skip to content

Commit a808d29

Browse files
authored
Merge pull request #25 from kabiroberai/kabir/fix-perms
Fix permission issues
2 parents 53d5203 + d65041b commit a808d29

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/app.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,13 +420,13 @@ class AnisetteService {
420420

421421
adi.endProvisioning(session, Base64.decode(ptm), Base64.decode(tk));
422422

423+
auto adiPath = adi.provisioningPath().buildPath("adi.pb");
424+
file.setAttributes(adiPath, 384); // 0600 = rw for owner
425+
423426
response = [
424427
"result": "ProvisioningSuccess",
425428
"adi_pb": Base64.encode(
426-
cast(ubyte[]) file.read(
427-
adi.provisioningPath()
428-
.buildPath("adi.pb")
429-
)
429+
cast(ubyte[]) file.read(adiPath)
430430
)
431431
];
432432
} catch (Exception ex) {

0 commit comments

Comments
 (0)