View Issue Details

IDProjectCategoryView StatusLast Update
0015538CentOS-7-OTHERpublic2018-12-15 10:12
Status closedResolutionunable to reproduce 
Product Version 
Target VersionFixed in Version 
Summary0015538: df Alias created after update to 7.6.1810
DescriptionThe .bashrc changed for root after update to 7.6.1810 with respect to df. Changes behavior of df if not utilizing the full path. Any scripts, apps, or programs that utilize the command without specifying the full path will have a different result if expecting anything other than the df -k.

# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias df='df | sort -k 6n'

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc

Out of 15 updates, 1 showed this behavior.
Steps To ReproduceHave not been able to reproduce with recent released updates on other systems. Will update this issue if encounter it again with other updates or other systems found with same occurrence.
Additional InformationThis is more an info in case it had been changed already for those looking for odd behaviors in df in specific updates. Remedy is very simple to comment or remove the alias in the .bashrc.
Tagsbashrc alias df




2018-12-05 22:57

manager   ~0033232

Is this on a fresh install? I just did a test with the 7.6 Minimal iso and the resulting /root/.bashrc on the newly formatted and installed system did not have that line in it. Nor do any of the half a dozen existing systems that I've upgraded from 7.5 to 7.6. That's such a strange line to add for no reason that I would suspect perhaps one of your colleagues added it?


2018-12-07 23:13

reporter   ~0033267

No, it was not a fresh install.

This had been updated for a while starting from 7.0.1503. As most around here have problems with Word and Excel, very unlikely anyone would have attempted a vi or pico session. It is a very isolated system, so the only changes that appeared recently was the update. I was checking some mount points and they did not come back with what I expected with a df -h until I found the alias. I typically do not use aliases and definitely not on df.


2018-12-08 00:28

manager   ~0033269

What output does "rpm -V rootfiles" return?


2018-12-14 17:56

reporter   ~0033343

Sorry for the delay. Busy right before the holiday. Here is the output you requested.

rpm -V rootfiles
S.5....T. c /root/.bashrc
missing c /root/.cshrc
missing c /root/.tcshrc


2018-12-15 10:12

manager   ~0033349

The output from that clearly shows that the file has been modified from the contents of the package itself. This firmly points to the file having been modified outside of the packaging system. In addition, in both fresh installs and updated installations, my tests show that this is not coming from anything within CentOS.

Issue History

Date Modified Username Field Change
2018-12-05 18:56 darrenprog New Issue
2018-12-05 18:56 darrenprog Tag Attached: bashrc alias df
2018-12-05 22:57 TrevorH Note Added: 0033232
2018-12-07 23:13 darrenprog Note Added: 0033267
2018-12-08 00:28 jrd Note Added: 0033269
2018-12-14 17:56 darrenprog Note Added: 0033343
2018-12-15 10:12 TrevorH Status new => closed
2018-12-15 10:12 TrevorH Resolution open => unable to reproduce
2018-12-15 10:12 TrevorH Note Added: 0033349