From: Andrew Tridgell Date: Mon, 17 Feb 2003 00:46:15 +0000 (+0100) Subject: hard links off by default X-Git-Tag: v2.2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25fbe62acc8ed4470de10bb301072686cb286366;p=thirdparty%2Fccache.git hard links off by default --- diff --git a/ccache.c b/ccache.c index c670ae1de..26d834a60 100644 --- a/ccache.c +++ b/ccache.c @@ -421,10 +421,10 @@ static void from_cache(int first) ret = 0; } else { unlink(output_file); - if (getenv("CCACHE_NOLINK")) { - ret = copy_file(hashname, output_file); - } else { + if (getenv("CCACHE_HARDLINK")) { ret = link(hashname, output_file); + } else { + ret = copy_file(hashname, output_file); } }