]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
hard links off by default
authorAndrew Tridgell <tridge@samba.org>
Mon, 17 Feb 2003 00:46:15 +0000 (01:46 +0100)
committerAndrew Tridgell <tridge@samba.org>
Mon, 17 Feb 2003 00:46:15 +0000 (01:46 +0100)
ccache.c

index c670ae1de5c9a79062978b8fe87fd1ccfee8dac2..26d834a609e83ce9f41bcb876e9ed0becb209ba0 100644 (file)
--- 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);
                }
        }