]> err.no Git - systemd/commitdiff
install: fix inverted meaning of '--force' in systemctl enable
authorMichal Schmidt <mschmidt@redhat.com>
Tue, 15 May 2012 06:12:49 +0000 (08:12 +0200)
committerMichal Schmidt <mschmidt@redhat.com>
Tue, 15 May 2012 06:13:29 +0000 (08:13 +0200)
src/shared/install.c

index fc1bf9620705c5c6a13fcc58e8e6a63d75223d9e..560bb24a93762f3a866d6abfa531fbcffa68e174 100644 (file)
@@ -1162,7 +1162,7 @@ static int create_symlink(
 
         free(dest);
 
-        if (force)
+        if (!force)
                 return -EEXIST;
 
         unlink(new_path);