bugfindutils - Bugs: bug #9833, updatedb should change to / before...

 
 

bug #9833: updatedb should change to / before running.

Submitter:  Andreas Metzler <ametzler>
Submitted:  Sat 31 Jul 2004 08:41:14 AM UTC
   
 
Category:  updatedb Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  None Fixed Release:  4.2.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 08 Aug 2004 03:43:51 PM UTC, comment #2: 

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Group administrator
Sun 08 Aug 2004 03:43:10 PM UTC, comment #1: 

This problem is fixed in the CVS code for findutils.
To resolve your problem, you could either wait for the
next official release of findutils, or check out a copy
of the code from the CVS repository for findutils.

James Youngman <jay>
Group administrator
Sat 31 Jul 2004 08:41:14 AM UTC, 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

Andreas Metzler <ametzler>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 4 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-10-16 jay Open/ClosedOpen Closed
    Fixed ReleaseNone 4.2.0
2004-08-08 jay StatusNone Fixed
2004-07-31 ametzler Carbon-Copy- Added wolfgangrohdewald<wolfgang --AT-- rohdewald --DOT-- de>

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code