Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94752 - Incomplete group renaming in sys-apps/slocate-2.7-r8
Summary: Incomplete group renaming in sys-apps/slocate-2.7-r8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-01 10:34 UTC by Yuri Vasilevski (RETIRED)
Modified: 2005-06-01 15:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild patch (slocate-2.7-r8.ebuild.patch,557 bytes, patch)
2005-06-01 10:54 UTC, Yuri Vasilevski (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri Vasilevski (RETIRED) gentoo-dev 2005-06-01 10:34:34 UTC
The group renaming form 'slocate' to 'locate' should be done with:

# groupmod -n locate slocate

instead of:

# sed -i s/^slocate:/locate:/ /etc/group

As groupmod modifies both /etc/group and /etc/gshadow which should have
consistent information.

Yuri.

Reproducible: Always
Steps to Reproduce:

Actual Results:  
# sed -i s/^slocate:/locate:/ /etc/group
# grep locate /etc/group  
locate:x:245:
# grep locate /etc/gshadow
slocate:::

Expected Results:  
# groupmod -n locate slocate
# grep locate /etc/group
locate:x:245:
# grep locate /etc/gshadow
locate:::
Comment 1 Yuri Vasilevski (RETIRED) gentoo-dev 2005-06-01 10:54:39 UTC
Created attachment 60385 [details, diff]
ebuild patch
Comment 2 SpanKY gentoo-dev 2005-06-01 15:24:16 UTC
thanks, that is a much better way to rename

added to portage