]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Copy files correctly, fixes [bb001cca8d].
authorRoy Marples <roy@marples.name>
Wed, 15 Oct 2014 16:09:27 +0000 (16:09 +0000)
committerRoy Marples <roy@marples.name>
Wed, 15 Oct 2014 16:09:27 +0000 (16:09 +0000)
dhcpcd-run-hooks.in

index 032ce9b2c8da27e5c2f5254b49048e97a4d709a8..660435ee7bf18c18a4d65ad2ce9beff091bd93b5 100644 (file)
@@ -161,7 +161,7 @@ copy_file()
                ln -sf "$1" "$2"
        else
                comp_file "$1" "$2" && return 1
-               cat "$2" >"$1"
+               cat "$1" >"$2"
        fi
 }