Quellcode durchsuchen

dpkg-statoverride: Fix typo inverting the override exists check

Guillem Jover vor 17 Jahren
Ursprung
Commit
1de3e1e0f3
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      src/statcmd.c

+ 1 - 1
src/statcmd.c

@@ -269,7 +269,7 @@ statoverride_add(const char *const *argv)
 	filename = path_cleanup(path);
 	filename = path_cleanup(path);
 
 
 	filestat = statdb_node_find(filename);
 	filestat = statdb_node_find(filename);
-	if (*filestat == NULL) {
+	if (*filestat != NULL) {
 		if (opt_force)
 		if (opt_force)
 			warning(_("An override for '%s' already exists, "
 			warning(_("An override for '%s' already exists, "
 			          "but --force specified so will be ignored."),
 			          "but --force specified so will be ignored."),