which-bugs
[Top][All Lists]
Advanced

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

Large File Support


From: Juergen Borleis
Subject: Large File Support
Date: Mon, 28 Aug 2017 11:51:13 +0200
User-agent: KMail/1.9.10 (enterprise35 0.20100827.1168748)

Hi,

recently I stumbled over the missing large file support of "which".

Without large file support:

$ which uniq
which: no uniq in (/sbin:/usr/sbin:/bin:/usr/bin)
$ strace which uniq
[...]
stat64("/sbin/uniq", 0x7e99d678)        = -1 ENOENT (No such file or directory)
stat64("/usr/sbin/uniq", 0x7e99d678)    = -1 ENOENT (No such file or directory)
stat64("/bin/uniq", 0x7e99d678)         = -1 ENOENT (No such file or directory)
stat64("/usr/bin/uniq", {st_mode=S_IFREG|0755, st_size=30264, ...}) = 0
write(2, "which: no uniq in (/sbin:/usr/sb"..., 50which: no uniq in 
(/sbin:/usr/sbin:/bin:/usr/bin)
) = 50
exit_group(1)                           = ?

With large file support:

$ which uniq
/usr/bin/uniq
$ strace which uniq
[...]
stat64("/sbin/uniq", 0x7ed6d6d8)        = -1 ENOENT (No such file or directory)
stat64("/usr/sbin/uniq", 0x7ed6d6d8)    = -1 ENOENT (No such file or directory)
stat64("/bin/uniq", 0x7ed6d6d8)         = -1 ENOENT (No such file or directory)
stat64("/usr/bin/uniq", {st_mode=S_IFREG|0755, st_size=30264, ...}) = 0
stat64("/usr/bin/uniq", {st_mode=S_IFREG|0755, st_size=30264, ...}) = 0
geteuid32()                             = 0
getegid32()                             = 0
getuid32()                              = 0
getgid32()                              = 0
access("/usr/bin/uniq", X_OK)           = 0
stat64("/usr/bin/uniq", {st_mode=S_IFREG|0755, st_size=30264, ...}) = 0
geteuid32()                             = 0
getegid32()                             = 0
getuid32()                              = 0
getgid32()                              = 0
access("/usr/bin/uniq", R_OK)           = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(207, 16), ...}) = 0
ioctl(1, TCGETS, {B115200 opost isig icanon echo ...}) = 0
write(1, "/usr/bin/uniq\n", 14/usr/bin/uniq
)         = 14
exit_group(0)                           = ?
+++ exited with 0 +++

Where to send a patch? To this list?

BTW: the 'configure.ac' has a dependency to 'cwautomacros' which seems not
really be used. If I remove it, I can re-generate the 'configure' script without
this external package. If it is really required, it should be part of the
package to enable others (like me) to re-generate the 'configure' script (I'm
building 'which' by a buildsystem for embedded systems).

Cheers
Juergen

-- 
Pengutronix e.K.                             | Juergen Borleis             |
Industrial Linux Solutions                   | http://www.pengutronix.de/  |



reply via email to

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