src/strip.vala
authorAlan Knowles <alan@roojs.com>
Fri, 27 Apr 2018 09:01:02 +0000 (17:01 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 27 Apr 2018 09:01:02 +0000 (17:01 +0800)
src/strip.vala

index 88593cd..c9d9664 100644 (file)
@@ -466,7 +466,9 @@ public class Strip : GLib.Object {
                                GLib.DirUtils.create_with_parents(dir, 0755);
                        }
                        GLib.debug("Creating file %s", target_fn);
-                       Posix.link(fn, target_fn);
+                       if (!FileUtils.test (target_fn, FileTest.EXISTS)) {
+                               Posix.link(fn, target_fn);
+                       }
                } else { 
                        GLib.debug("Skipping extraction %s", target_fn);
                }