From owner-cvs-all@FreeBSD.ORG Wed May 31 05:58:02 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.ORG Delivered-To: cvs-all@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94B7716A73D; Wed, 31 May 2006 05:58:02 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.FreeBSD.org (Postfix) with ESMTP id D417A43D46; Wed, 31 May 2006 05:58:01 +0000 (GMT) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.13.6/8.13.6) with ESMTP id k4V5r0Bi067530; Wed, 31 May 2006 09:53:00 +0400 (MSD) (envelope-from ache@nagual.pp.ru) Received: (from ache@localhost) by nagual.pp.ru (8.13.6/8.13.6/Submit) id k4V5qxlx067529; Wed, 31 May 2006 09:52:59 +0400 (MSD) (envelope-from ache) Date: Wed, 31 May 2006 09:52:59 +0400 From: Andrey Chernov To: Craig Rodrigues Message-ID: <20060531055259.GB67241@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Craig Rodrigues , Maxim Konovalov , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200605261244.k4QCiCsl057619@repoman.freebsd.org> <20060529193947.M63890@mp2.macomnet.net> <20060529215827.D78736@mp2.macomnet.net> <20060530034531.GA36462@crodrigues.org> <20060530110750.A96470@mp2.macomnet.net> <20060530224448.GA42556@crodrigues.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060530224448.GA42556@crodrigues.org> User-Agent: Mutt/1.5.11 Cc: cvs-src@FreeBSD.ORG, Maxim Konovalov , src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/ufs/ffs ffs_vfsops.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 May 2006 05:58:03 -0000 On Tue, May 30, 2006 at 06:44:48PM -0400, Craig Rodrigues wrote: > On Tue, May 30, 2006 at 11:11:34AM +0400, Maxim Konovalov wrote: > > [root@sonnie ~]# mount -u -o noexec,ro /vol0 > > Can you try this patch? > > + for (i=1; i < argc; i++) { > + if (strcmp(argv[i-1], "-o") == 0) { Why re-invent the wheel? You already have getopt(3) for that sort of parsing, just add a little to 'o' case. -- http://ache.pp.ru/