看板FB_security
标 题Re: FreeBSD Security Advisory FreeBSD-SA-04:10.cvs
发信站NCTU CSIE FreeBSD Server (Wed May 19 12:15:44 2004)
转信站ptt!FreeBSD.csie.NCTU!not-for-mail
--=-=-=
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
amal <
[email protected]> writes:
> My source tree was previously cvsuped to 5.2.1-RELEASE-p6.
It's probably easier and safer for you to cvsup than to apply the
patch manually.
> I found cvs in /usr/src/contrib/cvs rather
> than /usr/src/gnu/usr.bin/cvs, which is what the
> advisory recommends.
The sources are in contrib, but the build infrastructure is in gnu.
Building and installing from /usr/src/contrib/cvs instead of
/usr/src/gnu/usr.bin/cvs will *not* produce the correct results.
> # cd /usr/src
> # patch < /path/to/patch
>
> /* patch did not find the file to patch. */
Argh! I forgot to make sure the patch was relative to /usr/src. I'll
upload a new patch (attached) ASAP.
DES
--=20
Dag-Erling Sm=F8rgrav -
[email protected]
--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=cvs.patch
Index: contrib/cvs/src/server.c
===================================================================
RCS file: /home/ncvs/src/contrib/cvs/src/server.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- contrib/cvs/src/server.c 15 Apr 2004 01:17:27 -0000 1.21
+++ contrib/cvs/src/server.c 19 May 2004 06:17:52 -0000 1.22
@@ -1645,7 +1645,7 @@
&& strncmp (arg, name, cp - name) == 0)
{
timefield = strchr (cp + 1, '/') + 1;
- if (*timefield != '=')
+ if (*timefield == '/')
{
cp = timefield + strlen (timefield);
cp[1] = '\0';
@@ -1689,7 +1689,7 @@
&& strncmp (arg, name, cp - name) == 0)
{
timefield = strchr (cp + 1, '/') + 1;
- if (!(timefield[0] == 'M' && timefield[1] == '/'))
+ if (*timefield == '/')
{
cp = timefield + strlen (timefield);
cp[1] = '\0';
--=-=-=
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-security
To unsubscribe, send any mail to "
[email protected]"
--=-=-=--