First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 130435
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Vlastimil Babka (Caster) <caster@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 130435 depends on: Show dependency tree
Bug 130435 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-04-19 00:50 0000
This is what dispatch-conf shows after upgrading slocate 2.7-r8 to 3.1

--- /etc/cron.daily/slocate     2006-04-17 20:16:22.000000000 +0200
+++ /etc/cron.daily/._cfg0000_slocate   2006-04-19 09:29:57.000000000 +0200
@@ -1,6 +1,6 @@
 #! /bin/sh

-if [ -x /usr/bin/updatedb ]
+if [ -x /usr/bin/slocate ]
 then
        if [ -f /etc/updatedb.conf ]
        then
@@ -8,4 +8,5 @@
        else
                nice /usr/bin/updatedb -f proc
        fi
+       chown root.slocate /var/lib/slocate/slocate.db
 fi

But I had version 2.7-r8 which told me to change the group name and I followed,
so:

$ grep locate /etc/group
locate:x:245:

After manually deleting slocate.db and running updatedb, it's owned by
root.locate, so I guess the whole chown line is not needed?

------- Comment #1 From Vlastimil Babka (Caster) 2006-04-19 05:43:16 0000 -------
The question also is, what woul happen when going to 3.1 from <2.7-r8 - would
it also rename the group to "locate", as 2.7-r8 does, or is 3.1 expecting
"slocate" not just in cron script?
Also wondering that 3.1 went directly to stable, after the long stabilisation
of 2.7-r8...

------- Comment #2 From Attila Tóth 2006-04-19 06:03:59 0000 -------
*** Bug 130449 has been marked as a duplicate of this bug. ***

------- Comment #3 From Attila Tóth 2006-04-19 06:07:15 0000 -------
(In reply to comment #1)
> The question also is, what woul happen when going to 3.1 from <2.7-r8 - would
> it also rename the group to "locate", as 2.7-r8 does, or is 3.1 expecting
> "slocate" not just in cron script?
> Also wondering that 3.1 went directly to stable, after the long stabilisation
> of 2.7-r8...
> 

It's also a question to be answered, that which kind of new behaviour
introduced by this new version creates the need for this new line, if the
pervious ones were functioning correctly without it.
I have RBAC system installed, and I like to give a process only the resonable
rights.

Regards,
Dw.

------- Comment #4 From Oldrich Jedlicka 2006-04-19 12:16:47 0000 -------
I just upgraded to 3.1 and I was asked to make 'groupmod -n locate slocate'. So
I renamed the group. The owner of /var/lib/slocate/slocate.db is now
root.locate (group number stayed the same, only the name changed).

Fix the cron script, please. It should use root.locate, not root.slocate.

------- Comment #5 From Vlastimil Babka (Caster) 2006-04-20 04:20:31 0000 -------
OK it's no longer stable at least, see bug 130562

------- Comment #6 From Rick Morra 2006-04-20 10:09:45 0000 -------
slocate-3.1 updates ok for me using the cron script from 2.7-r8 and the name of
group 245 set to 'locate' in arch x86.

/var/lib/slocate/slocate.db ends up with ownership root.locate and it can be
read by /usr/bin/locate as installed by 3.1.

------- Comment #7 From SpanKY 2006-04-20 22:22:48 0000 -------
fixed in 3.1-r1

First Last Prev Next    No search results available      Search page      Enter new bug