cvs commit: src/sys/kern imgact_shell.c
dillon at crater.dragonflybsd.org
Sun Feb 27 21:45:09 PST 2005
dillon 2005/02/27 21:44:52 PST
DragonFly src repository
Allow the #! command line to be up to PAGE_SIZE long, rather then
artificially limiting it to MAXSHELLCMDLEN. The interpreter name is
still limited to MAXSHELLCMDLEN.
A \0 is now considered a line terminator.
Correctly report the ENAMETOOLONG case.
Note that FreeBSD (and hence DragonFly) break the #! line into multiple
argv arguments, which is not what any other UNIX does. This is likely going
to be changed in the future but not as of this commit.
Inspired-by: Maxim Sobolev <sobomax at xxxxxxxxxxx> / similar FreeBSD work,
and Garance A Drosihn <drosih at xxxxxxx>
Revision Changes Path
1.6 +15 -11 src/sys/kern/imgact_shell.c
More information about the Commits