[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. debian/1.14.3-200-gb232f8a

Timo Savola tsavola at movial.fi
Tue Aug 23 13:05:26 UTC 2011


The following commit has been merged in the upstream branch:
commit 5862082df139b1190a4fd7c3e5be650a4e0dc1c8
Author: Timo Savola <tsavola at movial.fi>
Date:   Mon Aug 9 14:06:01 2004 +0000

    Save support in TCP version
    
    * database saving (-s option) enabled for the TCP version.
      only non-remote entries are saved.
    
    git-archimport-id: fakeroot at packages.debian.org--fakeroot/fakeroot--main--0.0--patch-22

diff --git a/faked.c b/faked.c
index f215305..70f4270 100644
--- a/faked.c
+++ b/faked.c
@@ -371,6 +371,9 @@ int save_database(const uint32_t remote)
     return 0;
 
   for (i = data_begin(); i != data_end(); i = data_node_next(i)) {
+    if (i->remote != remote)
+      continue;
+
     fprintf(f,"dev=%llx,ino=%llu,mode=%llo,uid=%llu,gid=%llu,nlink=%llu,rdev=%llu\n",
             (uint64_t) i->buf.dev,(uint64_t) i->buf.ino,(uint64_t) i->buf.mode,
             (uint64_t) i->buf.uid,(uint64_t) i->buf.gid,(uint64_t) i->buf.nlink,
@@ -746,8 +749,8 @@ void cleanup(int g)
   msgctl (msg_get, IPC_RMID,NULL);
   msgctl (msg_snd, IPC_RMID,NULL);
   semctl (sem_id,0,IPC_RMID,sem_union);
-  save(0);
 #endif /* ! FAKEROOT_FAKENET */
+  save(0);
   if(g!=-1)
     exit(0);
 }

-- 
fakeroot



More information about the Fakeroot-commits mailing list