Date: Wed, 31 May 2006 09:52:59 +0400 From: Andrey Chernov <ache@FreeBSD.ORG> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: cvs-src@FreeBSD.ORG, Maxim Konovalov <maxim@macomnet.ru>, src-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/ufs/ffs ffs_vfsops.c Message-ID: <20060531055259.GB67241@nagual.pp.ru> In-Reply-To: <20060530224448.GA42556@crodrigues.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>
next in thread | previous in thread | raw e-mail | index | archive | help
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/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060531055259.GB67241>