bug-findutils
[Top][All Lists]
Advanced

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

[bugs #10533] Change from "whoami" to "id -u" breaks "updatedb" on Solar


From: anonymous
Subject: [bugs #10533] Change from "whoami" to "id -u" breaks "updatedb" on Solaris
Date: Thu, 30 Sep 2004 00:06:40 -0400
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040825 Camino/0.8.1

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




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

URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=10533>
Project: findutils
Submitted by: 0
On: Wed 09/29/2004 at 23:58

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


Summary:  Change from "whoami" to "id -u" breaks "updatedb" on Solaris

Original Submission:  I see that "updatedb" was changed from using "whoami" to 
"id -u" 3 years ago:

2001-06-05  Kevin Dalley  <address@hidden>

        * locate/updatedb.sh: replace "whoami" with "id -u" when testing
        for root.

The Solaris "/usr/bin/id" program does not support "-u", so this breaks (out of 
the box) on Solaris.

The XPG4 version of "id" in "/usr/xpg4/bin/id" *does* support "-u", so a 
possible fix might be to pre-pend "/usr/xpg4/bin" to the $PATH setting in 
"updatedb.sh" (a harmless no-op on other OS', I suspect), but then that means 
that other programs in the script would be called from "/usr/xpg4/bin" instead 
of the expected places - "rm", "mv", "sed", "sort", "tr" and "awk", to be 
specific - with possibly unexpected/unwanted results.











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

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







reply via email to

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