Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Feb 2015 23:23:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 197567] chflags -f argument ignored when no file found to be modified
Message-ID:  <bug-197567-8-dqRQFNqUwn@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197567-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197567-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197567

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles@FreeBSD.org

--- Comment #1 from Jilles Tjoelker <jilles@FreeBSD.org> ---
The error message ("No match") you get is from tcsh. It happens before chflags
is started, so chflags cannot do anything about it.

With sh, the error message is:

chflags: /var/empty/*: No such file or directory

A command like  chflags -f noschg /  correctly prints no error message and
returns exit status 0, however.

To me, the text in the man page

     -f      Do not display a diagnostic message if chflags could not modify
             the flags for file, nor modify the exit status to reflect such
             failures.

seems to match the behaviour I see: only failures to modify flags are
suppressed, while failures to locate files are unaffected. This matches chmod's
-f option, but that option is not standard either.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197567-8-dqRQFNqUwn>