[Bug 208169] [patch] df(1): df -l -l output "df: -l and -t are mutually exclusive."

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Aug 31 16:00:51 UTC 2016


Conrad E. Meyer <cem at freebsd.org> changed:

           What    |Removed                     |Added
                 CC|                            |cem at freebsd.org

--- Comment #1 from Conrad E. Meyer <cem at freebsd.org> ---
Given the manual page description, I think I would instead just ignore the
second lflag.  Like so:

--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -166,6 +166,9 @@ main(int argc, char *argv[])
                        hflag = 0;
                case 'l':
+                       /* Ignore duplicate -l */
+                       if (lflag)
+                               break;
                        if (vfslist != NULL)
                                xo_errx(1, "-l and -t are mutually
                        vfslist = makevfslist(makenetvfslist());

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

More information about the freebsd-bugs mailing list