RPM Package Manager, CVS Repository
  http://rpm5.org/cvs/
  ____________________________________________________________________________

  Server: rpm5.org                         Name:   Jeff Johnson
  Root:   /v/rpm/cvs                       Email:  [email protected]
  Module: rpm                              Date:   14-Jul-2009 22:01:41
  Branch: HEAD                             Handle: 2009071420014000

  Modified files:
    rpm/rpmio               rpmdav.c

  Log:
    - rpmdav: and unbreak st_ino for plain HTTP.

  Summary:
    Revision    Changes     Path
    2.109       +8  -4      rpm/rpmio/rpmdav.c
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: rpm/rpmio/rpmdav.c
  ============================================================================
  $ cvs diff -u -r2.108 -r2.109 rpmdav.c
  --- rpm/rpmio/rpmdav.c        14 Jul 2009 19:15:53 -0000      2.108
  +++ rpm/rpmio/rpmdav.c        14 Jul 2009 20:01:40 -0000      2.109
  @@ -901,10 +901,6 @@
   
       ne_propfind_destroy(pfh);
   
  -    /* XXX fts(3) needs/uses st_ino. */
  -    /* Hash the path to generate a st_ino analogue. */
  -    st->st_ino = hashFunctionString(0, avx->uri, 0);
  -
       for (current = resitem; current != NULL; current = next) {
        const char *s, *se;
        char * val;
  @@ -2150,6 +2146,10 @@
        goto exit;
       }
   
  +    /* XXX fts(3) needs/uses st_ino. */
  +    /* Hash the path to generate a st_ino analogue. */
  +    st->st_ino = hashFunctionString(0, path, 0);
  +
   exit:
   if (_dav_debug < 0)
   fprintf(stderr, "<-- davStat(%s) rc %d\n\t%s\n", path, rc, statstr(st, buf));
  @@ -2181,6 +2181,10 @@
        goto exit;
       }
   
  +    /* XXX fts(3) needs/uses st_ino. */
  +    /* Hash the path to generate a st_ino analogue. */
  +    st->st_ino = hashFunctionString(0, path, 0);
  +
   if (_dav_debug < 0)
   fprintf(stderr, "*** davLstat(%s) rc %d\n\t%s\n", path, rc, statstr(st, 
buf));
   exit:
  @@ .
______________________________________________________________________
RPM Package Manager                                    http://rpm5.org
CVS Sources Repository                                [email protected]

Reply via email to