diff options
author | Ian Lynagh <igloo@earth.li> | 2008-04-08 19:34:36 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2008-04-08 19:34:36 +0000 |
commit | 5357e3c66bf273b6e49f6695f36bb75cd94e132a (patch) | |
tree | d014d2e82ff458f650778844ed1dbbebd6a3d40f /utils/lndir | |
parent | 2ad4df602e5bb2cff0315b945fa3201749878c30 (diff) | |
download | haskell-5357e3c66bf273b6e49f6695f36bb75cd94e132a.tar.gz |
Fix lndir
It would copy when it should symlink, and vice-versa.
Diffstat (limited to 'utils/lndir')
-rw-r--r-- | utils/lndir/lndir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/lndir/lndir.c b/utils/lndir/lndir.c index 6cc240a978..22f1e30ab9 100644 --- a/utils/lndir/lndir.c +++ b/utils/lndir/lndir.c @@ -176,7 +176,7 @@ int copyfile(const char *oldpath, const char *newpath) { char buf[BUFSIZE]; #ifdef SYMLINKS - if (copy) { + if (copy == 0) { return symlink(oldpath, newpath); } else { #endif |