From 74aa1b82fb83a4b7a5a0ed2cce992c2ec962189c Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Tue, 10 Aug 2021 00:30:27 +0200 Subject: [PATCH] Cleanup default parameter in changeOwner --- src/Stores/ChallengeStore.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Stores/ChallengeStore.php b/src/Stores/ChallengeStore.php index d945465..06eb97e 100644 --- a/src/Stores/ChallengeStore.php +++ b/src/Stores/ChallengeStore.php @@ -32,14 +32,14 @@ class ChallengeStore } if ($userInfo !== null) { - yield File\changeOwner($this->docroot . '/.well-known', $userInfo['uid'], -1); - yield File\changeOwner($this->docroot . '/.well-known/acme-challenge', $userInfo['uid'], -1); + yield File\changeOwner($this->docroot . '/.well-known', $userInfo['uid']); + yield File\changeOwner($this->docroot . '/.well-known/acme-challenge', $userInfo['uid']); } yield File\write("{$path}/{$token}", $payload); if ($userInfo !== null) { - yield File\changeOwner("{$path}/{$token}", $userInfo['uid'], -1); + yield File\changeOwner("{$path}/{$token}", $userInfo['uid']); } yield File\changePermissions("{$path}/{$token}", 0644);