Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Nov 2014 20:18:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 194971] New: [patch] pw(8): wrong error message when using -V dir
Message-ID:  <bug-194971-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: bugzilla@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.



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