ソースを参照

dpkg-statoverride: Fix typo inverting the override exists check

Guillem Jover 17 年 前
コミット
1de3e1e0f3
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  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);
 
 	filestat = statdb_node_find(filename);
-	if (*filestat == NULL) {
+	if (*filestat != NULL) {
 		if (opt_force)
 			warning(_("An override for '%s' already exists, "
 			          "but --force specified so will be ignored."),