pkgsrc-Bugs archive

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

Re: pkg/36656: amanda-client will fail to backup the requested filesystem



Does this patch solve the problem?

cat patches/patch-client-src_getfsent.c
$NetBSD$

--- client-src/getfsent.c.orig  2011-03-29 16:29:42.605775000 +0000
+++ client-src/getfsent.c
@@ -476,6 +476,7 @@ samefile(
 {
   int i;
   for(i = 0; i < 3; ++i) {
+    if (stats[i].st_dev == (dev_t)-1) continue;
     if (stats[i].st_dev == estat->st_dev &&
        stats[i].st_ino == estat->st_ino)
       return 1;

or is there a case when we would want a match with st_dev=-1?


Home | Main Index | Thread Index | Old Index