[PATCH] vi read-only mode bugfix and enhancement
Tito
farmatito at tiscali.it
Wed Jul 18 00:41:34 PDT 2007
On Wednesday 18 July 2007 01:10:40 Denis Vlasenko wrote:
> Applied to svn with minor changes. For example, we were comparing argv[0]
> with "view", but argv[0] can be "/bin/view"! Right thing is
>
> strncmp(appliet_name, "view", 4)
Why not:
if (*applet_name[3])
Just an idea....
Ciao,
Tito
> BTW, any idea why strNcmp? Can it really be "viewsomething"? I'm no expert
> on vi...
> --
> vda
More information about the busybox
mailing list