Bug 2123 - which-1.0-11 (does not expand ~)
which-1.0-11 (does not expand ~)
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: which (Show other bugs)
6.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-04-11 12:52 EDT by rh2021
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-04-12 15:20:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description rh2021 1999-04-11 12:52:27 EDT
Could not find programs in ~/bin but could find them
when I said
      $HOME/bin

    If the machine is on NIS, the problem does not occur.
Using a normal
    passwd file it does. I have ltrace and strace to upload.

Breaks programs like enlightenment which look for files
using which.


execve("/usr/bin/which", ["which", "clean"], [/* 52 vars
*/]) = 0
brk(0)                                  = 0x8049750
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such
file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 32904, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
fstat(3, {st_mode=0, st_size=0, ...})   = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096
mmap(0, 972760, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x4001d000
mprotect(0x40103000, 30680, PROT_NONE)  = 0
mmap(0x40103000, 20480, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED, 3, 0xe5000)
 = 0x40103000
mmap(0x40108000, 10200, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOU
S, -1, 0) = 0x40108000
close(3)                                = 0
munmap(0x40014000, 32904)               = 0
personality(PER_LINUX)                  = 0
getpid()                                = 852
access("~/bin/clean", X_OK)             = -1 ENOENT (No such
file or directory)
access("/usr/local/bin/clean", X_OK)    = -1 ENOENT (No such
file or directory)
access("/opt/bin/clean", X_OK)          = -1 ENOENT (No such
file or directory)
access("/usr/bin/X11/clean", X_OK)      = -1 ENOENT (No such
file or directory)
access("/usr/bin/clean", X_OK)          = -1 ENOENT (No such
file or directory)
access("/usr/games/clean", X_OK)        = -1 ENOENT (No such
file or directory)
access("/bin/clean", X_OK)              = -1 ENOENT (No such
file or directory)
access("/usr/sbin/clean", X_OK)         = -1 ENOENT (No such
file or directory)
access("/sbin/clean", X_OK)             = -1 ENOENT (No such
file or directory)
fstat(1, {st_mode=0, st_size=0, ...})   = 0
mmap(0, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x400140
00
write(1, "which: no clean in (~/bin:/usr/l"..., 105which: no
clean in (~/bin:/us
r/local/bin:/opt/bin:/usr/bin/X11:/usr/bin:/usr/games:/bin:/usr/sbin:/sbin)
) = 105
munmap(0x40014000, 4096)                = 0
_exit(1)                                = ?
Comment 1 Preston Brown 1999-04-12 15:20:59 EDT
fixed as of which-2.0-1

Note You need to log in before you can comment on or make changes to this bug.