Bug 150 - В файле /etc/inid.d/fetchmail UID>500, а должен быть UID>=500
Summary: В файле /etc/inid.d/fetchmail UID>500, а должен быть UID>=500
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: fetchmail-daemon (show other bugs)
Version: unstable
Hardware: all Linux
: P4 normal
Assignee: Mikhail Zabaluev
QA Contact:
URL:
Keywords:
: 828 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-11-11 20:04 MSK by egor
Modified: 2005-08-30 03:05 MSD (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>500) print $1}\' </etc/passwd`
+NON_SYSTEM_USERS=`awk -F: \'{if ($3>=500) print $1}\' </etc/passwd`
 LOCKFILE=/var/lock/subsys/fetchmail
 RETVAL=0
 
</textarea>
		</td>
	</tr>
	<tr>
		<td align=center bgcolor=#c8c8e8>
			<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