bug-findutils
[Top][All Lists]
Advanced

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

[bugs #9833] updatedb should change to / before running.


From: Andreas Metzler
Subject: [bugs #9833] updatedb should change to / before running.
Date: Sat, 31 Jul 2004 04:44:57 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5

This mail is an automated notification from the bugs tracker
 of the project: findutils.




/**************************************************************************/
[bugs #9833] Full Item Snapshot:

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9833>
Project: findutils
Submitted by: Andreas Metzler
On: Sat 07/31/2004 at 08:41

Category:  updatedb
Severity:  5 - Average
Item Group:  None
Resolution:  None
Assigned to:  None
Originator Name:  
Originator Email:  
Status:  Open
Release:  None
Fixed Release:  None


Summary:  updatedb should change to / before running.

Original Submission:  This is http://bugs.debian.org/262476

--------------------------
Wolfgang Rohdewald writes:

When running updatedb from crontab, it starts in the corresponding home 
directory, e.g. /root. If /root has 0700 permissions, and if updatedb changes 
to $NETUSER, it has no permission on the current directory, hence a 'no 
permission' error.

The bug fix is:

wr:/usr/bin# diff -u updatedb updatedb.new
--- updatedb    2004-06-29 14:14:35.000000000 +0200
+++ updatedb.new        2004-07-31 09:54:42.000000000 +0200
@@ -118,6 +118,7 @@

 # FIXME figure out how to sort null-terminated strings, and use -print0.
 {
+cd /
 if test -n "$SEARCHPATHS"; then
   if [ "$LOCALUSER" != "" ]; then
     su $LOCALUSER -s $SHELL -c 

--------------------------

The report seems to be valid, afaict.
          thanks, cu andreas



CC List
-------

CC Address                          | Comment
------------------------------------+-----------------------------
wolfgangrohdewald<wolfgang --AT-- rohdewald --DOT-- de> | You are the original 
submitter.









For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9833>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/







reply via email to

[Prev in Thread] Current Thread [Next in Thread]