Patch to add -y option.

This commit is contained in:
Seb/The Removers 2014-08-15 10:23:49 +02:00 committed by Shamus Hammons
parent bd10a921a7
commit 3901d04596
1 changed files with 16 additions and 0 deletions

16
rln.c
View File

@ -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)