[Fakeroot-commits] [SCM] fakeroot branch, upstream, updated. 08ed00124d8b6b445d3b91a9aa15eec638b02f05
Timo Savola
tsavola at movial.fi
Sun Nov 15 03:16:50 UTC 2009
The following commit has been merged in the upstream branch:
commit d4a9135139ccee858084c958feade0a24e4bd562
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