From: Seb/The Removers Date: Fri, 15 Aug 2014 08:23:49 +0000 (+0200) Subject: Patch to add -y option. X-Git-Tag: v1.7.1~7 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=commitdiff_plain;h=3901d045964d29104a80404b9285652889c3f5bd Patch to add -y option. --- diff --git a/rln.c b/rln.c index 23b2fea..4367837 100644 --- a/rln.c +++ b/rln.c @@ -2977,6 +2977,22 @@ int doargs(int argc, char * argv[]) wflag = 1; break; + case 'y': + case 'Y': + if (i >= argc) + { + printf("No directory filename following -y switch\n"); + return 1; + } + + if (strlen(argv[i]) > FARGSIZE * 3) + { + printf("Directory file name too long (sorry!)\n"); + return 1; + } + + strcpy(libdir, argv[i++]); + break; case 'z': case 'Z': // Suppress banner flag if (zflag)