X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=blobdiff_plain;f=rln.c;fp=rln.c;h=23b2fea77f8df642a65f53f03cb118a47c32f0c8;hp=b48764150ec30313ced1e459bd226b01011bb045;hb=bd10a921a726ffb950afede504b6ff79df813d16;hpb=fd9ba5f319362722d3483da67d987c38cd4b59b7 diff --git a/rln.c b/rln.c index b487641..23b2fea 100644 --- a/rln.c +++ b/rln.c @@ -3115,6 +3115,21 @@ int main(int argc, char * argv[]) ExitLinker(); } + // Check to see if include paths actually exist + if (strlen(libdir) > 0) + { + DIR * test = opendir(libdir); + + if (test == NULL) + { + printf("Invalid include path: %s\n", libdir); + errflag = 1; + ExitLinker(); + } + + closedir(test); + } + if (!zflag && !vflag) { ShowVersion(); // Display version information