public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Dumping COMPLETE slocate (updatedb) database?
@ 2005-07-10  5:07 Alexander Skwar
  2005-07-10  6:32 ` Alexander Skwar
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Skwar @ 2005-07-10  5:07 UTC (permalink / raw
  To: gentoo-user

Hello.

Because I've lost some filesystems recently, I'd like to find out,
what I've *exactly* lost. To do that, I'd like to read and *print*
(on screen) the /complete/ slocate/updatedb database from
/var/lib/slocate/slocate.db.

But when I "locate" something, the result is only printed if the
file actually right now exists.

Is there some way to dump the slocate.db? Or to modify the
"locate" binary, so that this check is not done?

[06:55:09 alexander@server:~] $ locate --version
Secure Locate 2.7 - Released January 24, 2003
[06:56:49 alexander@server:~] $ epm -qf `which locate`
slocate-2.7-r8
[06:57:04 alexander@server:~] $ uname -a
Linux server 2.6.12-ck3.009.reiser4_rc5-mm2.no-nfsv4.genkernel #1 Sat Jul 9 13:01:17 CEST 2005 i686 AMD Athlon(tm) XP 2000+ AuthenticAMD GNU/Linux

Thanks,

Alexander Skwar
-- 
>From 0 to "what seems to be the problem officer" in 8.3 seconds.
		-- Ad for the new VW Corrado
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] Dumping COMPLETE slocate (updatedb) database?
  2005-07-10  5:07 [gentoo-user] Dumping COMPLETE slocate (updatedb) database? Alexander Skwar
@ 2005-07-10  6:32 ` Alexander Skwar
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Skwar @ 2005-07-10  6:32 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar schrieb:

> Or to modify the
> "locate" binary, so that this check is not done?


[08:30:16 alexander@server:~/tmp/muell/slocate/slocate-2.7] $ diff -u main.c~ main.c
--- main.c~     2005-07-10 08:26:21.469624512 +0200
+++ main.c      2005-07-10 08:29:28.936310365 +0200
@@ -1117,6 +1117,8 @@
        int res;
        char *str_ptr;

+       return 1;
+
        if (access(codedpath, R_OK) != 0) {
                free(codedpath);
                return 0;

Alexander Skwar
-- 
4 Out of memory, 0:1
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-10  6:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-10  5:07 [gentoo-user] Dumping COMPLETE slocate (updatedb) database? Alexander Skwar
2005-07-10  6:32 ` Alexander Skwar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox