Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 124862

Summary: Why hardlinked to /bin/ls with argv[0] inspection
Product: Gentoo Linux Reporter: bugs
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description bugs 2006-03-03 13:36:30 UTC
Right now, /bin/dir and /bin/ls are 70-80KB duplicates of each other that differ only in a couple of bits (/bin/dir is /bin/ls -C).

Request that /bin/dir be a hardlinked /bin/ls with /bin/ls patched to set ls_mode.
# diff ls-dir.c ls-ls.c
2c2
< int ls_mode = LS_MULTI_COL;
---
> int ls_mode = LS_LS;
if argv[0] is dir, then LS_MULTI_COL otherwise leave at default.

It is true 70KB isn't a big deal nowdays, but some folks do use /bin for recovery purposes so it can sometimes be on small, separate, partitions or placed on a floppy.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-03 13:43:45 UTC
Why don't you suggest such stuff upstream?
Comment 2 bugs 2006-03-03 17:54:09 UTC
Oh, is this an upstream thing? Thought you folks were the ones who'd patched it.
Sorry.
Comment 3 SpanKY gentoo-dev 2006-03-03 18:03:55 UTC
we patch very few things in coreutils ... i push almost everything upstream first

you can send an e-mail here:
http://lists.gnu.org/mailman/listinfo/bug-coreutils

thanks !