mirror of
https://github.com/clearlinux/clr-debug-info.git
synced 2026-09-06 05:41:43 +00:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
07e1f033e1 | ||
|
|
45f22398ca | ||
|
|
b538b457ce |
+1
-1
@@ -2,7 +2,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.66])
|
||||
AC_INIT(clr-debug-info, 9, arjan@linux.intel.com)
|
||||
AC_INIT(clr-debug-info, 11, arjan@linux.intel.com)
|
||||
AM_INIT_AUTOMAKE([foreign -Wall -W])
|
||||
AM_SILENT_RULES([yes])
|
||||
AC_PROG_CC
|
||||
|
||||
+6
-3
@@ -611,11 +611,14 @@ int main(int argc, char *argv[])
|
||||
char *shadowdir = "/var/cache/debuginfo/src";
|
||||
umask(0);
|
||||
|
||||
system("modprobe fuse");
|
||||
if (access("/sys/module/fuse/", F_OK))
|
||||
system("modprobe fuse");
|
||||
signal(SIGPIPE,SIG_IGN);
|
||||
|
||||
system("mkdir -p /var/cache/debuginfo/lib &> /dev/null");
|
||||
system("mkdir -p /var/cache/debuginfo/src &> /dev/null");
|
||||
if (access("/var/cache/debuginfo/lib/", F_OK))
|
||||
system("mkdir -p /var/cache/debuginfo/lib &> /dev/null");
|
||||
if (access("/var/cache/debuginfo/src/", F_OK))
|
||||
system("mkdir -p /var/cache/debuginfo/src &> /dev/null");
|
||||
|
||||
if (fork() == 0) {
|
||||
dir = "/usr/lib/debug";
|
||||
|
||||
+6
-4
@@ -124,7 +124,7 @@ static int curl_get_file(const char *url, const char *prefix, time_t timestamp)
|
||||
|
||||
memset(&statbuf, 0, sizeof(statbuf));
|
||||
stat(filename, &statbuf);
|
||||
if (statbuf.st_size > 0 && asprintf(&command, "tar -C /usr/%s/.debug --no-same-owner -xf %s", prefix, filename) >= 0) {
|
||||
if (statbuf.st_size > 0 && asprintf(&command, "tar -C /var/cache/debuginfo/%s --no-same-owner -xf %s", prefix, filename) >= 0) {
|
||||
system(command);
|
||||
free(command);
|
||||
}
|
||||
@@ -229,9 +229,11 @@ int main(int argc, char **argv)
|
||||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
|
||||
signal(SIGPIPE,SIG_IGN);
|
||||
|
||||
system("mkdir -p /var/cache/debuginfo/lib/ &> /dev/null");
|
||||
system("mkdir -p /var/cache/debuginfo/src/ &> /dev/null");
|
||||
|
||||
if (access("/var/cache/debuginfo/lib/", F_OK))
|
||||
system("mkdir -p /var/cache/debuginfo/lib/ &> /dev/null");
|
||||
if (access("/var/cache/debuginfo/src/", F_OK))
|
||||
system("mkdir -p /var/cache/debuginfo/src/ &> /dev/null");
|
||||
|
||||
|
||||
sockfd = socket(AF_UNIX, SOCK_STREAM, 0);
|
||||
|
||||
Reference in New Issue
Block a user