Преглед изворни кода

dpkg-deb: Unify “failed read” strings by making control an argument

Guillem Jover пре 16 година
родитељ
комит
a7ab968e9e
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      dpkg-deb/info.c

+ 2 - 1
dpkg-deb/info.c

@@ -174,7 +174,8 @@ static void info_list(const char *debar, const char *directory) {
   free(cdlist);
 
   if (!(cc= fopen("control","r"))) {
-    if (errno != ENOENT) ohshite(_("failed to read `control' (in `%.255s')"),directory);
+    if (errno != ENOENT)
+      ohshite(_("failed to read `%.255s' (in `%.255s')"), "control", directory);
     fputs(_("(no `control' file in control archive!)\n"), stdout);
   } else {
     lines= 1;