Subject: bug#49804: closed (Re: [bug#49804] [PATCH] services: pam-limits: fix limits.conf location)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 07 Aug 2021 15:37:02 +0000

Your bug report

#49804: [PATCH] services: pam-limits: fix limits.conf location

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
49804: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49804
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#49804] [PATCH] services: pam-limits: fix limits.conf location
From: Julien Lepiller <[email-masked]>
To: muradm <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Sat, 7 Aug 2021 17:35:47 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Le Sun, 01 Aug 2021 06:14:00 +0300,
muradm <[email-masked]> a écrit :

> * gnu/services/base.scm: fix limits.conf location
> 
> This fixes #49771
> 

Pushed as 29883f113087edaf24570fbd7f1113df907f1099, thank you!

Subject: [PATCH] services: pam-limits: fix limits.conf location
From: muradm <[email-masked]>
To: [email-masked]
Date: Sun, 01 Aug 2021 06:14:00 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/services/base.scm: fix limits.conf location

This fixes #49771

diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index ab3e441a7b..53c3abfa48 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1383,14 +1383,8 @@ information on the configuration file syntax."
   (let ((security-limits
          ;; Create /etc/security containing the provided "limits.conf" file.
          (lambda (limits-file)
-           `(("security"
-              ,(computed-file
-                "security"
-                #~(begin
-                    (mkdir #$output)
-                    (stat #$limits-file)
-                    (symlink #$limits-file
-                             (string-append #$output "/limits.conf"))))))))
+           `(("security/limits.conf"
+              ,limits-file))))
         (pam-extension
          (lambda (pam)
            (let ((pam-limits (pam-entry