Bug 178345 - upgrade attempts to create the tclhttpd user
Summary: upgrade attempts to create the tclhttpd user
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: tclhttpd
Version: 4
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Wart
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-01-19 17:31 UTC by Wart
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version: 3.5.1-7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-01-24 20:21:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Wart 2006-01-19 17:31:31 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
During a yum upgrade of tclhttpd from 3.5.1-5 to 3.5.1-6 on FC-4, I encountered the following error:

useradd: user tclhttpd exists
Thu Jan 19 08:54:02 PST 2006 [12044]: failed with '9'
error: %pre(tclhttpd-3.5.1-6.fc4.x86_64) scriptlet failed, exit status 9
error:   install: %pre scriptlet failed (2), skipping tclhttpd-3.5.1-6.fc4

It seems that tclhttpd does not check for the existence of the tclhttpd user before trying to create it.

Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install tclhttpd 3.5.1-5 from FC-4
2. Perform a yum upgrade tclhttpd to get 3.5.1-6
3. Look at the output
  

Actual Results:  The error was generated and the package was not upgraded.

Expected Results:  No error is generated and the package updates successfully

Additional info:

Fix in one of two ways:

1) Check for the tclhttpd user before creating it in %pre

or

2) Only create the tclhttpd user if this is the first time tclhttpd is installed.

Comment 1 Wart 2006-01-24 20:21:45 UTC
%pre now checks for the existence of the tclhttpd user with 'id -u tclhttpd'
before attempting to create it.  This fix is in the latest 3.5.1-7 release for
FC3, FC4, and rawhide.


Note You need to log in before you can comment on or make changes to this bug.