cvs commit: src/sys/ufs/ffs ffs_vfsops.c

Andrey Chernov ache at FreeBSD.ORG
Tue May 30 22:58:03 PDT 2006


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 at 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/


More information about the cvs-all mailing list