diff --git a/debugsubpkg.diff b/debugsubpkg.diff index 1d825e5..006ae35 100644 --- a/debugsubpkg.diff +++ b/debugsubpkg.diff @@ -1,5 +1,5 @@ --- ./build/files.c.orig 2017-02-16 09:52:49.292092380 +0000 -+++ ./build/files.c 2017-03-22 12:15:29.060287267 +0000 ++++ ./build/files.c 2017-03-22 13:32:42.911865500 +0000 @@ -21,6 +21,10 @@ #include #include @@ -264,7 +264,7 @@ + int i; + + snprintf(tmp, 1024, "%s%s", buildroot, "/usr/lib/debug/.dwz"); -+ if (lstat(tmp, &sbuf) == 0 && S_ISDIR(sbuf.st_mode)) ++ if (lstat(tmp, &sbuf) != 0 || !S_ISDIR(sbuf.st_mode)) + return NULL; + d = opendir(tmp); + if (!d)