From d65041b1e452f431a8670face058265e0ba3bc43 Mon Sep 17 00:00:00 2001 From: Kabir Oberai Date: Sat, 16 Nov 2024 19:55:14 -0500 Subject: [PATCH] Fix permission issues --- source/app.d | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/app.d b/source/app.d index 10d0c16..2302883 100644 --- a/source/app.d +++ b/source/app.d @@ -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) {