/[smeserver]/rpms/qpsmtpd/sme10/0022-don-t-create-homedir-in-RPM.patch
ViewVC logotype

Contents of /rpms/qpsmtpd/sme10/0022-don-t-create-homedir-in-RPM.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sun Feb 7 20:49:54 2016 UTC (8 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: qpsmtpd-0_96-19_el7_sme, qpsmtpd-0_96-12_el7_sme, qpsmtpd-0_96-11_el7_sme, qpsmtpd-0_96-16_el7_sme, qpsmtpd-0_96-13_el7_sme, qpsmtpd-0_96-6_el7_sme, qpsmtpd-0_96-18_el7_sme, qpsmtpd-0_96-23_el7_sme, qpsmtpd-0_96-20_el7_sme, qpsmtpd-0_84-20_el7_sme, qpsmtpd-0_96-17_el7_sme, qpsmtpd-0_96-8_el7_sme, qpsmtpd-0_96-5_el7_sme, qpsmtpd-0_96-2_el7_sme, qpsmtpd-0_96-21_el7_sme, qpsmtpd-0_96-22_el7_sme, qpsmtpd-0_96-14_el7_sme, qpsmtpd-0_96-15_el7_sme, qpsmtpd-0_96-9_el7_sme, qpsmtpd-0_96-4_el7_sme, qpsmtpd-0_96-1_el7_sme, qpsmtpd-0_96-3_el7_sme, qpsmtpd-0_84-18_el7_sme, qpsmtpd-0_96-10_el7_sme, qpsmtpd-0_84-19_el7_sme, HEAD
* Sun Feb 7 2016 stephane de labrusse <stephdl@de-labrusse.fr> 0.84-18.sme
- Build new rpm for sme10

1 From 9348539ed7aa03b438905f953771db14fcb4c1ea Mon Sep 17 00:00:00 2001
2 From: Robert <rspier@pobox.com>
3 Date: Sun, 25 Jul 2010 21:48:26 -0700
4 Subject: don't create homedir in RPM
5
6 based on..
7
8 From: Charlie Brady <charlieb-qpsmtpd@budge.apana.org.au>
9 Subject: rpm packaging bug - smtpd user created with shell not /bin/false
10 Date: Sat, 17 Jul 2010 18:17:49 -0400 (EDT)
11 Message-ID:
12 <Pine.LNX.4.64.1007171816230.19928@e-smith.charlieb.ott.istop.com>
13
14 http://bugs.contribs.org/show_bug.cgi?id=6025
15
16 if ! id smtpd >/dev/null 2>&1
17 then
18 # need to create smtpd user.
19 if perl -e 'exit ! defined(getgrnam("postdrop"))'
20 then
21 # if postfix is installed, we will probably use
22 # queue/postfix, which will need this:
23 supp="-G postdrop"
24 fi
25 useradd -r -m $supp smtpd
26 fi
27
28 qpsmtpd needs a user "smtpd", but should not create a home directory or
29 give access to a shell.
30 ---
31 packaging/rpm/qpsmtpd.spec.in | 2 +-
32 1 files changed, 1 insertions(+), 1 deletions(-)
33
34 diff --git a/packaging/rpm/qpsmtpd.spec.in b/packaging/rpm/qpsmtpd.spec.in
35 index f591ed6..e7529de 100644
36 --- a/packaging/rpm/qpsmtpd.spec.in
37 +++ b/packaging/rpm/qpsmtpd.spec.in
38 @@ -153,7 +153,7 @@ then
39 # queue/postfix, which will need this:
40 supp="-G postdrop"
41 fi
42 - useradd -r -m $supp smtpd
43 + useradd -r -M -s /bin/false $supp smtpd
44 fi
45
46 %changelog
47 --
48 1.7.2.2
49

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed