[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] More puzzlement - expath() in sbr/path.c
From: |
Jon Steinhart |
Subject: |
Re: [Nmh-workers] More puzzlement - expath() in sbr/path.c |
Date: |
Fri, 28 Jan 2005 12:53:46 -0800 |
> 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 secon
> d
> >main if statement in this function includes what is, after some substitution
> s,
>
> > 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
Oops. Your're right. Too much code blindness here.