Date: Sun, 14 Jul 2002 14:41:56 -0700 (PDT) From: Ian Jackson <ian@davenant.greenend.org.uk> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/40572: vipw prints silly message if $EDITOR fails Message-ID: <200207142141.g6ELfuHg023381@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 40572 >Category: bin >Synopsis: vipw prints silly message if $EDITOR fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 14 14:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Ian Jackson >Release: 4.4 >Organization: SGO >Environment: FreeBSD lsd.relativity.greenend.org.uk 4.4-RELEASE FreeBSD 4.4-RELEASE #49: Sun Jul 14 02:08:15 BST 2002 kaet@lsd.relativity.greenend.org.uk:/usr/obj/usr/src/sys/000004lsd i386 >Description: when the external EDITOR invoked by vipw fails (exits nonzero), vipw prints a message involving strerror(errno), instead of the exit status of the failed program. >How-To-Repeat: bash-2.05# EDITOR=false vipw vipw: false: Operation not permitted vipw: /etc/master.passwd: unchanged bash-2.05# >Fix: src/lib/libutil/pw_util.c:pw_edit and all its callers would have to be changed to allow it other error returns besides -1 setting errno. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207142141.g6ELfuHg023381>