Fix it
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=389
This commit is contained in:
parent
8a9e054bba
commit
f5955f21b5
@ -1,5 +1,5 @@
|
|||||||
--- ./build/files.c.orig 2017-02-16 09:52:49.292092380 +0000
|
--- ./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 @@
|
@@ -21,6 +21,10 @@
|
||||||
#include <rpm/rpmlog.h>
|
#include <rpm/rpmlog.h>
|
||||||
#include <rpm/rpmbase64.h>
|
#include <rpm/rpmbase64.h>
|
||||||
@ -264,7 +264,7 @@
|
|||||||
+ int i;
|
+ int i;
|
||||||
+
|
+
|
||||||
+ snprintf(tmp, 1024, "%s%s", buildroot, "/usr/lib/debug/.dwz");
|
+ 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;
|
+ return NULL;
|
||||||
+ d = opendir(tmp);
|
+ d = opendir(tmp);
|
||||||
+ if (!d)
|
+ if (!d)
|
||||||
|
Loading…
Reference in New Issue
Block a user