Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
a740846d61
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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);