Bug 150

Summary: В файле /etc/inid.d/fetchmail UID>500, а должен быть UID>=500
Product: Sisyphus Reporter: egor <egor>
Component: fetchmail-daemonAssignee: Mikhail Zabaluev <mhz>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P4 CC: azol, legion, mike
Version: unstable   
Hardware: all   
OS: Linux   

Description egor 2001-11-11 20:04:01 MSK
--- fetchmail~  Tue Mar 13 11:50:42 2001
+++ fetchmail   Sun Nov 11 19:37:03 2001
@@ -16,7 +16,7 @@
 # Check that fetchmailrc exists.
 [ -x /usr/bin/fetchmail ] || exit
 
-NON_SYSTEM_USERS=`awk -F: \'{if ($3&gt;500) print $1}\' &lt;/etc/passwd`
+NON_SYSTEM_USERS=`awk -F: \'{if ($3&gt;=500) print $1}\' &lt;/etc/passwd`
 LOCKFILE=/var/lock/subsys/fetchmail
 RETVAL=0
 
&lt;/textarea&gt;
		&lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
		&lt;td align=center bgcolor=#c8c8e8&gt;
			<b>Steps To Reproduce</b>
		&lt;/td&gt;
		&lt;td colspan=5 bgcolor=#d8d8d8&gt;
			&lt;textarea cols=60 rows=5 name=f_steps_to_reproduce wrap=\&quot;virtual\&quot;&gt;
---

---

Comment 1 Dmitry V. Levin 2001-12-17 10:59:45 MSK
solution will be like that:

UID_MIN=`grep -s ^UID_MIN /etc/login.defs |head -1 |awk \'{print $2}\'`
[ -n \&quot;$UID_MIN\&quot; ] || UID_MIN=500
NON_SYSTEM_USERS=`awk -F: -v \&quot;uid_min=$UID_MIN\&quot; \'{if ($3&gt;=uid_min) print $1}\' &lt;/etc/passwd`

Another problem (#0000220) delays closing of this bug.
Comment 2 Dmitry V. Levin 2001-12-17 10:59:45 MSK
solution will be like that:

UID_MIN=`grep -s ^UID_MIN /etc/login.defs |head -1 |awk \'{print $2}\'`
[ -n \&quot;$UID_MIN\&quot; ] || UID_MIN=500
NON_SYSTEM_USERS=`awk -F: -v \&quot;uid_min=$UID_MIN\&quot; \'{if ($3&gt;=uid_min) print $1}\' &lt;/etc/passwd`

Another problem (#0000220) delays closing of this bug.
Comment 3 Mikhail Zabaluev 2002-05-02 22:31:02 MSD
If a well-thought-out solution needs to be postponed for so much,
maybe we\'d better get by with a quick fix which solves the problem at hand?
Comment 4 Mikhail Zabaluev 2002-05-02 22:31:02 MSD
If a well-thought-out solution needs to be postponed for so much,
maybe we\'d better get by with a quick fix which solves the problem at hand?
Comment 5 Mikhail Zabaluev 2002-06-05 04:00:58 MSD
Fixed in 5.9.12-alt1
Comment 6 Mikhail Zabaluev 2002-06-05 04:00:58 MSD
Fixed in 5.9.12-alt1