diff options
| author | Paul Eggert | 2018-06-21 13:29:15 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-06-21 13:30:23 -0700 |
| commit | 9a27310f0ab068bef52cfe30d3abc5eda3a0d12b (patch) | |
| tree | cf906ad8760b832e7a6ce3772bc205a0a14833d9 | |
| parent | 5583e6460c38c5d613e732934b066421349a5259 (diff) | |
| download | emacs-9a27310f0ab068bef52cfe30d3abc5eda3a0d12b.tar.gz emacs-9a27310f0ab068bef52cfe30d3abc5eda3a0d12b.zip | |
Set group when installing, too
From a patch by Ulrich Mueller in:
https://lists.gnu.org/r/emacs-devel/2018-06/msg00687.html
* Makefile.in (set_installuser): Also set the group, in order
to match install(1) behavior. Also, don’t clutter stderr
with a diagnostic if ‘id’ is missing.
| -rw-r--r-- | Makefile.in | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 52d44d9708f..4d7627ba09d 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -516,9 +516,11 @@ INSTALL_ARCH_INDEP_EXTRA = @INSTALL_ARCH_INDEP_EXTRA@ | |||
| 516 | ## https://lists.gnu.org/r/emacs-devel/2007-10/msg01672.html | 516 | ## https://lists.gnu.org/r/emacs-devel/2007-10/msg01672.html |
| 517 | ## Needs to be the user running install, so configure can't set it. | 517 | ## Needs to be the user running install, so configure can't set it. |
| 518 | set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ | 518 | set_installuser=for installuser in $${LOGNAME} $${USERNAME} $${USER} \ |
| 519 | `id -un 2> /dev/null`; do \ | 519 | `(id -u) 2> /dev/null`; do \ |
| 520 | [ -n "$${installuser}" ] && break ; \ | 520 | [ -n "$${installuser}" ] && break ; \ |
| 521 | done | 521 | done; \ |
| 522 | installgroup=`(id -g) 2>/dev/null` && [ -n "$$installgroup" ] && \ | ||
| 523 | installuser=$$installuser:$$installgroup | ||
| 522 | 524 | ||
| 523 | ### Install the files that are machine-independent. | 525 | ### Install the files that are machine-independent. |
| 524 | ### Most of them come straight from the distribution; the exception is | 526 | ### Most of them come straight from the distribution; the exception is |