@@ -1,8 +1,8 @@ /* [ʞ] nkvd.c - XDG directory enforcer * ~ lexi hale * © AGPLv3 - * $ cc -fPIC -pie nkvd.c -Wl,-E -onkvd -ldl + * $ cc -fPIC -pie -shared nkvd.c -Wl,-E -onkvd -ldl * [-D_NO_GNU [-D_LIBC=…]] [-D_CONF_HOME=…] * $ export LD_PRELOAD=nkvd.so * * ! NOTE: for unknown reasons, nkvd currently only works @@ -14,9 +14,9 @@ * - bizarre complication: the bug can only be reproduced * if the -O flag itself is present; turning on the * same individual optimization flags that -O is * supposed to represent does not trigger the problem. - * - conclusion: compiler devils. + * - conclusion: compiler devils * * ! WARNING: test this program thoroughly before you start * exporting it from your shellrcs; if things get fucked, * you may not be able to execute any binaries with the @@ -137,9 +137,8 @@ # endif #endif #include #include -#include #ifndef _LIBC # define _LIBC "libc.so.6" #endif @@ -146,9 +145,8 @@ #ifndef _CONF_HOME # define _CONF_HOME ".config" #endif - #define pstr(x) x,sizeof x #define hl(txt) "\x1b[1;31m" txt "\x1b[m" #define bold(txt) "\x1b[1m" txt "\x1b[21m"