Bug 474220 - 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 5
Classification: Red Hat
Component: coreutils
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Ondrej Vasik
QA Contact: BaseOS QE
URL:
Whiteboard:
Depends On:
Blocks: 474232
TreeView+ depends on / blocked
 
Reported: 2008-12-02 20:54 UTC by Bryan Mason
Modified: 2018-10-27 12:29 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-09-02 09:17:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:1262 0 normal SHIPPED_LIVE coreutils bug fix update 2009-09-01 09:22:04 UTC

Description Bryan Mason 2008-12-02 20:54:12 UTC
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.

Comment 1 Ondrej Vasik 2008-12-02 21:35:51 UTC
Thanks for report, already reported to upstream with proposed patch (http://lists.gnu.org/archive/html/bug-coreutils/2008-11/msg00217.html)

Comment 2 Ondrej Vasik 2008-12-02 21:37:04 UTC
Just as a sidenote - it's not only chmod, but chown/chgrp issue as well ...

Comment 9 errata-xmlrpc 2009-09-02 09:17:20 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-1262.html


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