[CD] Fixed getcwd build error for the non-glibc case

On Sat, Aug 02, 2008 at 01:24:16AM +0200, Peter Hartlich wrote:
>
> dash's debian/diff/0048--CD-Restored-warning-when-getcwd-fails.diff
> contains the following lines:
>
> -     return getcwd(buf, sizeof(buf)) ? savestr(buf) : nullstr;
> +
> +     if (getcwd(buf, sizeof(buf))
> +             return savestr(buf);
>
> The if condition is missing a closing parenthesis, which probably went
> unnoticed because it occurs in a section only compiled if __GLIBC__ is
> not defined.

This patch adds the extra parenthesis.  Thanks Peter.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2 files changed
tree: ccbfcf67c09ac8d0cc158de110f4cdb2177e9b49
  1. src/
  2. ChangeLog
  3. ChangeLog.O
  4. configure.ac
  5. COPYING
  6. Makefile.am