From: Michael Heerdegen via "Emacs development discussions." <emacs-devel@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: : : master 7f97cf31dc3: Create blessmail at build time instead of install time
Date: Sun, 25 Aug 2024 04:50:12 +0200 [thread overview]
Message-ID: <87ed6d2u57.fsf@web.de> (raw)
In-Reply-To: 877cc65a55.fsf@protonmail.com
Pip Cet <pipcet@protonmail.com> writes:
> +(defun blessmail-command (string)
> + (if (and (boundp 'blessmail-doit)
> + blessmail-doit)
> + (shell-command string)
> + (message (concat " " string))))
Better (message "%s" ...) maybe? But my main point is:
> + (unless (= ?w (aref modes 8))
> + (message (concat "Assuming %s is really the mail spool directory, you should\n"
> + "run the following commands as root, to give %s\n"
> + "appropriate permissions:\n")
> + dirname (file-name-nondirectory movemail-path))
> + (cond
> + ((= ?w (aref modes 5))
> + (blessmail-command
> + (concat "chgrp " (number-to-string (file-attribute-group-id attr))
> + " " movemail-path " && chmod g+s " movemail-path)))
> + ((= ?w (aref modes 2))
> + (blessmail-command
> + (concat "chown " (number-to-string (file-attribute-user-id attr))
> + " " movemail-path " && chmod u+s " movemail-path)))
> + (t
> + (blessmail-command
> + (concat "chown root " movemail-path " && chmod u+s " movemail-path)))))
> + (message "\nDo that after running make install.")))
> (kill-emacs)
Not an expert for shell stuff, but: wouldn't this cause trouble for
people using a non-posix compliant shell, like the popular fish shell?
AFAIU this will be called before the user can even set `shell-file-name'.
Michael.
next prev parent reply other threads:[~2024-08-25 2:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <172441424046.32730.1198862680597856819@vcs2.savannah.gnu.org>
[not found] ` <20240823115720.C4A92C1FB72@vcs2.savannah.gnu.org>
2024-08-23 12:17 ` master 7f97cf31dc3: Create blessmail at build time instead of install time Pip Cet
2024-08-23 12:35 ` : " Robert Pluim
2024-08-23 13:03 ` Pip Cet
2024-08-23 16:07 ` : " Robert Pluim
2024-08-24 13:21 ` Pip Cet
2024-08-25 2:50 ` Michael Heerdegen via Emacs development discussions. [this message]
2024-08-25 5:10 ` Pip Cet
2024-08-25 5:54 ` Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ed6d2u57.fsf@web.de \
--to=emacs-devel@gnu.org \
--cc=michael_heerdegen@web.de \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).