Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Jan 2010 19:10:09 GMT
From:      "Pedro F. Giffuni" <giffunip@tutopia.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/142384: sync fsck_msdosfs with OpenBSD
Message-ID:  <201001061910.o06JA9Ni089001@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/142384; it has been noted by GNATS.

From: "Pedro F. Giffuni" <giffunip@tutopia.com>
To: Antoine Brodin <antoine@FreeBSD.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/142384: sync fsck_msdosfs with OpenBSD
Date: Wed, 6 Jan 2010 11:03:23 -0800 (PST)

 --0-437212032-1262804603=:89207
 Content-Type: text/plain; charset=us-ascii
 
 ----- Original Message ----
 ...
 > 
 > My problem was with the parenthesis between "n=" and "read" in your patch.
 > 
 
 Ooops.. my bad, sorry!
 
 New patch attached.
 
 
       
 --0-437212032-1262804603=:89207
 Content-Type: application/octet-stream; name=patch-fsck_msdosfs
 Content-Transfer-Encoding: base64
 Content-Disposition: attachment; filename="patch-fsck_msdosfs"
 
 ZGlmZiAtcnUgZnNja19tc2Rvc2ZzLm9yaWcvYm9vdC5jIGZzY2tfbXNkb3Nm
 cy9ib290LmMKLS0tIGZzY2tfbXNkb3Nmcy5vcmlnL2Jvb3QuYwkyMDEwLTAx
 LTA2IDExOjA3OjI0LjAwMDAwMDAwMCArMDAwMAorKysgZnNja19tc2Rvc2Zz
 L2Jvb3QuYwkyMDEwLTAxLTA2IDEzOjU3OjUzLjAwMDAwMDAwMCArMDAwMApA
 QCAtNTUsOSArNTUsOSBAQAogCXVfY2hhciBibG9ja1tET1NCT09UQkxPQ0tT
 SVpFXTsKIAl1X2NoYXIgZnNpbmZvWzIgKiBET1NCT09UQkxPQ0tTSVpFXTsK
 IAl1X2NoYXIgYmFja3VwW0RPU0JPT1RCTE9DS1NJWkVdOwotCWludCByZXQg
 PSBGU09LOworCWludCBuLCByZXQgPSBG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GJvb3QtPkJ5dGVz
 UGVyU2VjKTsKIAlpZiAoYnVmZmVyID09IE5VTEwpIHsKIAkJcGVycm9yKCJO
 byBzcGFjZSBmb3IgRkFUIik7CiAJCXJldHVybiBGU0ZBVEFMOwo=
 
 --0-437212032-1262804603=:89207--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001061910.o06JA9Ni089001>