[Bug 194971] New: [patch] pw(8): wrong error message when using -V dir

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 12 20:18:40 UTC 2014


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194971

            Bug ID: 194971
           Summary: [patch] pw(8): wrong error message when using -V dir
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: Needs Triage
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: bugzilla at dsx.bsdsx.fr

Created attachment 149333
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=149333&action=edit
patch for pw.c

When using -V dir flag, pw(8) display wrong error message if dir 
not exists

# pw -V /this_directory_does_not_exists usershow root
pw: no such user `root'
# echo $?
67

After patch:
# /usr/obj/usr/src/usr.sbin/pw/pw -V /this_directory_does_not_exists usershow
root
pw: no such directory `/this_directory_does_not_exists'
# echo $?
72

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


More information about the freebsd-bugs mailing list