Просмотр исходного кода

dpkg: Use ohshit() instead of ohshite() on strtoul() error

There's no guarantee that errno will be set for all error conditions
checked.

Regression introduced in commit 20e7af7b6ee4ab703b5d0e6f091fe3f565550a2b.
Guillem Jover лет назад: 14
Родитель
Сommit
a740846d61
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/main.c

+ 1 - 1
src/main.c

@@ -731,7 +731,7 @@ commandfd(const char *const *argv)
   errno = 0;
   infd = strtoul(pipein, &endptr, 10);
   if (pipein == endptr || *endptr || infd > INT_MAX)
-    ohshite(_("invalid integer for --%s: `%.250s'"), cipaction->olong, pipein);
+    ohshit(_("invalid integer for --%s: `%.250s'"), cipaction->olong, pipein);
   if ((in= fdopen(infd, "r")) == NULL)
     ohshite(_("couldn't open `%i' for stream"), (int) infd);