in reply to Re^3: (OT) Fixing Line Endings - patch the shell (kernel)
in thread (OT) Fixing Line Endings
i.e. it finished the executable name at the first space or tab. I guess a better patch would be to change that if test to also null out '\r' (hmm...and probably form-feed and others whilst we're at it).while (cp > bprm->buf) { cp--; if ((*cp == ' ') || (*cp == '\t')) *cp = '\0'; else break; }
I wonder how loudly people would scream if this were proposed as a kosher kernel patch. It breaks backwards compatability quite badly, but perhaps only for people who deserve it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: (OT) Fixing Line Endings - patch the shell (kernel)
by Tanktalus (Canon) on Nov 30, 2006 at 18:38 UTC |