Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124862 - Why hardlinked to /bin/ls with argv[0] inspection
Summary: Why hardlinked to /bin/ls with argv[0] inspection
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-03 13:36 UTC by bugs
Modified: 2006-03-03 18:03 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 !