Bug 474232 - Behavior change for 'chmod -f' between rhel3 and rhel4/rhel5
Summary: Behavior change for 'chmod -f' between rhel3 and rhel4/rhel5
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: coreutils
Version: 4.8
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On: 474220
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-02 21:39 UTC by Ondrej Vasik
Modified: 2009-05-18 20:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-05-18 20:07:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0959 0 normal SHIPPED_LIVE coreutils bug fix update 2009-05-18 13:28:11 UTC

Description Ondrej Vasik 2008-12-02 21:39:02 UTC
+++ This bug was initially created as a clone of Bug #474220 +++

Description of problem:

    The chmod command option "-f" does not behave the same between
    RHEL 3 and RHEL 5. Assuming the file /tmp/junk does not exist, the
    following command produces no output on RHEL 3:

        chmod -f 755 /tmp/junk

    On RHEL 5 the same command produces the following output:

        chmod: cannot access `/tmp/junk': No such file or directory

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

    coreutils-5.97-14.el5

How reproducible:

    Every time.

Steps to Reproduce:

    1.  run "chmod -f 755 /tmp/nonexistent-file
  
Actual results:

    chmod: cannot access `/tmp/nonexistent-file': No such file or directory 

Expected results:

    Silence.  No error message from chmod.

Additional info:

    coreutils-5.97-18.el5 in RHEL 5.3 Beta behaves the same as
    coreutils-5.97-14.el5 in RHEL 5.2.

--- Additional comment from ovasik on 2008-12-02 16:35:51 EDT ---

Thanks for report, already reported to upstream with proposed patch (http://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00217.html)

--- Additional comment from ovasik on 2008-12-02 16:37:04 EDT ---

Just as a sidenote - it's not only chmod, but chown/chgrp issue as well ...

Comment 6 Petr Sklenar 2009-02-09 13:27:37 UTC
QA Whiteboard: RHTSdone, /CoreOS/coreutils/chmod/bz474232_be_silent

Comment 8 errata-xmlrpc 2009-05-18 20:07:23 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0959.html


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