nmh-workers
[Top] [All Lists]

Re: [Nmh-workers] More puzzlement - expath() in sbr/path.c

2005-01-28 13:57:49
Jon Steinhart <jon(_at_)fourwinds(_dot_)com> wrote on Jan 28, 2005:

There is code in expath in sbr/path.c that just can't be correct.  The second
main if statement in this function includes what is, after some substitutions,

      if ( ... && strcmp(name, ".") && strcmp(name, "..") && ... )

This can never be true!

I don't see the problem.

  strcmp() returns non-zero (true) if the strings are *different*.

It is surely possible for name to be different from "." and to be
different from ".." at the same time.

 -NWR




_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://lists.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>