Lose leftover davRead() related hack
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 1 Dec 2007 16:41:14 +0000 (18:41 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 1 Dec 2007 16:41:14 +0000 (18:41 +0200)
lib/signature.c

index 81df8fb..27db1f2 100644 (file)
@@ -108,11 +108,7 @@ static inline rpmRC printSize(FD_t fd, int siglen, int pad, int datalen)
     struct stat st;
     int fdno = Fileno(fd);
 
-    /* HACK: workaround for davRead wiring. */
-    if (fdno == 123456789) {
-       st.st_size = 0;
-       st.st_size -= RPMLEAD_SIZE+siglen+pad+datalen;
-    } else if (fstat(fdno, &st) < 0)
+    if (fstat(fdno, &st) < 0)
        return RPMRC_FAIL;
 
     rpmlog(RPMLOG_DEBUG,