[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] More puzzlement - expath() in sbr/path.c
From: |
Neil W Rickert |
Subject: |
Re: [Nmh-workers] More puzzlement - expath() in sbr/path.c |
Date: |
Fri, 28 Jan 2005 14:35:08 -0600 |
Jon Steinhart <address@hidden> 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