public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/emacs-tools:emacs-daemon commit in: /
Date: Fri, 14 Mar 2025 22:27:44 +0000 (UTC)	[thread overview]
Message-ID: <1741990494.4886b6c523a4b37c60de76b7486abe08eeb727c1.ulm@gentoo> (raw)

commit:     4886b6c523a4b37c60de76b7486abe08eeb727c1
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 14 22:14:54 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Mar 14 22:14:54 2025 +0000
URL:        https://gitweb.gentoo.org/proj/emacs-tools.git/commit/?id=4886b6c5

Fix ownership of pidfile dir

* emacs.rc (start_pre): New function, replaces checkconfig.
Fix checkpath call; the directory should belong to the superuser.
(start): Remove call to checkconfig.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 ChangeLog | 6 ++++++
 emacs.rc  | 6 ++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 326467b..3f10ef1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-03-14  Ulrich Müller  <ulm@gentoo.org>
+
+	* emacs.rc (start_pre): New function, replaces checkconfig.
+	Fix checkpath call; the directory should belong to the superuser.
+	(start): Remove call to checkconfig.
+
 2025-03-09  Ulrich Müller  <ulm@gentoo.org>
 
 	* Version 0.24 released.

diff --git a/emacs.rc b/emacs.rc
index 8302aa8..3f8611f 100644
--- a/emacs.rc
+++ b/emacs.rc
@@ -18,7 +18,7 @@ depend() {
     after bootmisc dbus
 }
 
-checkconfig() {
+start_pre() {
     if [ "${USER}" = "${RC_SVCNAME}" ]; then
         eerror "You have to create an init script for each user:"
         eerror "ln -s emacs /etc/init.d/emacs.<user>"
@@ -42,13 +42,11 @@ checkconfig() {
     fi
 
     checkpath -d --owner 0 --mode 0755 "${PIDFILE_DIR%/*}"
-    checkpath -d --owner "${USER}" --mode 0755 "${PIDFILE_DIR}"
+    checkpath -d --owner 0 --mode 0755 "${PIDFILE_DIR}"
 }
 
 start() {
     local home
-    checkconfig || return 1
-
     eval home="~${USER}"
 
     SHELL=${EMACS_SHELL:-$(awk -F: "\$1 == \"${USER}\" { print \$7 }" \


             reply	other threads:[~2025-03-14 22:27 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-14 22:27 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-07-02 16:23 [gentoo-commits] proj/emacs-tools:emacs-daemon commit in: / Ulrich Müller
2025-07-02 16:23 Ulrich Müller
2025-07-02 16:23 Ulrich Müller
2025-06-28 18:41 Ulrich Müller
2025-03-14 22:27 Ulrich Müller
2025-03-10 12:03 Ulrich Müller
2025-03-09 20:48 Ulrich Müller
2025-03-07 16:58 Ulrich Müller
2025-03-05 15:56 Ulrich Müller
2025-03-05 13:36 Ulrich Müller
2025-03-05 13:08 Ulrich Müller
2025-03-05 13:08 Ulrich Müller
2018-12-09 22:36 Ulrich Müller
2018-09-16 14:49 Ulrich Müller
2016-06-08  6:43 Ulrich Müller
2016-05-06 13:20 Ulrich Müller
2016-05-06 13:20 Ulrich Müller
2016-05-06 13:20 Ulrich Müller
2014-02-02 11:29 Ulrich Müller
2014-02-02 11:29 Ulrich Müller
2013-08-06 19:09 Ulrich Mueller
2013-08-06 19:09 Ulrich Mueller
2013-03-23 22:08 Ulrich Mueller
2013-03-23 22:08 Ulrich Mueller
2013-03-23 22:08 Ulrich Mueller
2013-03-23 22:08 Ulrich Mueller
2012-07-21  9:01 Ulrich Mueller
2012-07-21  9:01 Ulrich Mueller
2012-05-06 18:47 Ulrich Mueller
2012-05-06 18:14 Ulrich Mueller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1741990494.4886b6c523a4b37c60de76b7486abe08eeb727c1.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox