]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-getcwd.patch
- internal file update (for compatibility with *.mgc generated by file-4.14)
[packages/rpm.git] / rpm-getcwd.patch
1 --- rpm-4.3/build.c.orig        2005-04-10 02:35:15.000000000 +0200
2 +++ rpm-4.3/build.c     2005-04-10 02:35:43.000000000 +0200
3 @@ -206,7 +206,7 @@
4            directory for this run */
5  
6         if (*arg != '/') {
7 -           (void)getcwd(buf, BUFSIZ);
8 +           if (getcwd(buf, BUFSIZ) == NULL) strcpy(buf, ".");
9             strcat(buf, "/");
10             strcat(buf, arg);
11         } else 
12 @@ -225,7 +225,7 @@
13      specut = urlPath(specURL, &specFile);
14      if (*specFile != '/') {
15         char *s = alloca(BUFSIZ);
16 -       (void)getcwd(s, BUFSIZ);
17 +       if (getcwd(s, BUFSIZ) == NULL) strcpy(s, ".");
18         strcat(s, "/");
19         strcat(s, arg);
20         specURL = s;
This page took 0.047004 seconds and 3 git commands to generate.