bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice for Interix and to specify users


From: Mark D. Baushke
Subject: Re: Advice for Interix and to specify users
Date: Mon, 21 Apr 2008 09:03:45 -0700

Hi Jerker,

The following patch to rcs.c may aid you in finding out more information
about your fopen() bug. I would commit it to the CVS sources, but I have
a pending change ([bug #22781]) which is still waiting for one of the
other cvs developers to successfully build on a Windows box in my tree,
so I have not tested this patch.

        Good luck,
        -- Mark

ChangeLog entry:

2008-04-21  Mark D. Baushke  <mdb@gnu.org>

        * rcs.c (rcsbuf_cache_open): Pass errno to error() calls from
        CVS_FOPEN and fseek on failure.

Index: src/rcs.c
===================================================================
RCS file: /cvsroot/cvs/ccvs/src/rcs.c,v
retrieving revision 1.262.4.64
diff -u -p -u -p -r1.262.4.64 rcs.c
--- rcs.c       19 Dec 2007 20:44:16 -0000      1.262.4.64
+++ rcs.c       21 Apr 2008 15:58:17 -0000
@@ -2051,11 +2051,11 @@ rcsbuf_cache_open (rcs, pos, pfp, prcsbu
 
        *pfp = CVS_FOPEN (rcs->path, FOPEN_BINARY_READ);
        if (*pfp == NULL)
-           error (1, 0, "unable to reopen `%s'", rcs->path);
+           error (1, errno, "unable to reopen `%s'", rcs->path);
        if (pos != 0)
        {
            if (fseek (*pfp, pos, SEEK_SET) != 0)
-               error (1, 0, "cannot fseek RCS file %s", rcs->path);
+               error (1, errno, "cannot fseek RCS file %s", rcs->path);
        }
        rcsbuf_open (prcsbuf, *pfp, rcs->path, pos);
     }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]