]> git.pld-linux.org Git - packages/doomlegacy.git/commitdiff
- fix chunk which looked like backdoor otherwise auto/th/doomlegacy-1_42-2
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 19 Jan 2011 23:47:17 +0000 (23:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- use tabs as upstream code does

Changed files:
    doomlegacy-paths.patch -> 1.7

doomlegacy-paths.patch

index ed3d3998b9883a1278799ea967ee43946dcc595c..8ea438ba0235fc3e3261344af9de735f96b996c8 100644 (file)
@@ -18,7 +18,7 @@
  
      if (!(waddir = getenv("DOOMWADDIR")))
 -        waddir = ".";
  
      if (!(waddir = getenv("DOOMWADDIR")))
 -        waddir = ".";
-+      waddir = "/usr/share/doomlegacy";
++        waddir = "/usr/share/doomlegacy";
  
      wadfilename = malloc(2 + strlen(s) + strlen(waddir));
      if (*s != '/')
  
      wadfilename = malloc(2 + strlen(s) + strlen(waddir));
      if (*s != '/')
@@ -29,7 +29,7 @@
  
         // try to open library in CWD
 -       dlptr = dlopen("./r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
  
         // try to open library in CWD
 -       dlptr = dlopen("./r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
-+      dlptr = dlopen("/usr/lib/doomlegacy/r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
++       dlptr = dlopen("/usr/lib/doomlegacy/r_opengl.so",RTLD_NOW | RTLD_GLOBAL);
  
         if(!dlptr) {
           // try to open in LIBPATH
  
         if(!dlptr) {
           // try to open in LIBPATH
@@ -55,7 +55,7 @@
        struct stat     s;
        char            pb[2048];
 +      
        struct stat     s;
        char            pb[2048];
 +      
-+      strcpy(b,"/usr/X11R6/lib/doomlegacy_142_src/");
++      strcpy(b,"/usr/lib/doomlegacy/");
 +      strcat(b,file);
 +      if (stat(b, &s) == 0) {
 +              return(b);
 +      strcat(b,file);
 +      if (stat(b, &s) == 0) {
 +              return(b);
This page took 0.083796 seconds and 4 git commands to generate.