From owner-cvs-all Thu Jun 20 7:56:15 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 224A337B439; Thu, 20 Jun 2002 07:55:54 -0700 (PDT) Received: (from sobomax@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5KEtst98000; Thu, 20 Jun 2002 07:55:54 -0700 (PDT) (envelope-from sobomax) Message-Id: <200206201455.g5KEtst98000@freefall.freebsd.org> From: Maxim Sobolev Date: Thu, 20 Jun 2002 07:55:53 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/ps ps.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG sobomax 2002/06/20 07:55:53 PDT Modified files: bin/ps ps.c Log: Don't try to decode old-style options if the argv[1] begins with `-' and the second character represents some option taking an argument. This fixes problem when ps(1) is invoked for examply as follows: $ ps -Ufoobar1234 the above example results in option string being interpreted as -U foobarp1234 - note extra `p'. Reported by: Vladimir Sotnikov MFC after: 2 weeks Revision Changes Path 1.55 +28 -10 src/bin/ps/ps.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message