Explorar el Código

dpkg: add the missing ohshite() on a failed syscall

Raphaël Hertzog hace 15 años
padre
commit
fc625d1613
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/archives.c

+ 2 - 0
src/archives.c

@@ -622,6 +622,8 @@ tarobject(void *ctx, struct tar_entry *ti)
           if (stat(conff->name, &stabtmp))
             if (errno == ENOENT || errno == ENOTDIR || errno == ELOOP)
               continue;
+            else
+              ohshite("cannot stat file '%s'", conff->name);
           if (stabtmp.st_dev == stab.st_dev &&
               stabtmp.st_ino == stab.st_ino)
             break;