Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 497370 - app-portage/cfg-update-1.8.7 should not create a /root/.bashrc file
Summary: app-portage/cfg-update-1.8.7 should not create a /root/.bashrc file
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Third-Party Tools (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-07 08:09 UTC by redneb
Modified: 2014-10-06 11:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description redneb 2014-01-07 08:09:10 UTC
If cfg-update is executed (by the root user) and it does not find a /root/.bashrc file then it creates one itself. The file it creates is a copy of gentoo's /etc/skel/.bashrc from 2003(!) and is rather outdated. Furthermore, this file is not sourced anyway because by default there is no /root/.bash_profile which is the one that actually sources the .bashrc file. I think there is no reason for cfg-update to create that file.
Comment 1 Richard Freeman gentoo-dev 2014-01-07 19:39:08 UTC
Ok, I've been bugged by this as well.  This is a leftover from the pre-hook days.  

I removed it entirely in 1.8.8, which you can install from my overlay.  If it works fine in my testing for a few days I'll put it in portage.