[Bug 276723] chflags: Fix -f option

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Jan 2024 22:19:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276723

            Bug ID: 276723
           Summary: chflags: Fix -f option
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: rbranco@suse.com

There's a bug with the -f option when used with the -v option, making you
believe that it worked.

To reproduce:

```
$ chflags -vf uchg /etc/passwd
/etc/passwd
$ echo $?
0
```

Fix: https://github.com/freebsd/freebsd-src/pull/1088

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