From: Elan Ruusamäe Date: Wed, 19 Jan 2011 23:47:17 +0000 (+0000) Subject: - fix chunk which looked like backdoor otherwise X-Git-Tag: auto/th/doomlegacy-1_42-2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fdoomlegacy.git;a=commitdiff_plain;h=860e57e25ffd793a1d680d71339e3d620d4d1173 - fix chunk which looked like backdoor otherwise - use tabs as upstream code does Changed files: doomlegacy-paths.patch -> 1.7 --- diff --git a/doomlegacy-paths.patch b/doomlegacy-paths.patch index ed3d399..8ea438b 100644 --- a/doomlegacy-paths.patch +++ b/doomlegacy-paths.patch @@ -18,7 +18,7 @@ if (!(waddir = getenv("DOOMWADDIR"))) - waddir = "."; -+ waddir = "/usr/share/doomlegacy"; ++ waddir = "/usr/share/doomlegacy"; 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); -+ 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 @@ -55,7 +55,7 @@ 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);