[PC-BSD Commits] r863 - pcbsd/trunk/PBCsource

svn at pcbsd.org svn at pcbsd.org
Fri Nov 9 07:02:33 PST 2007


Author: kris
Date: 2007-11-09 07:02:32 -0800 (Fri, 09 Nov 2007)
New Revision: 863

Modified:
   pcbsd/trunk/PBCsource/pbistart.c
Log:

Updated the pbistart.c binary to allow the -accept flag when running in
text mode



Modified: pcbsd/trunk/PBCsource/pbistart.c
===================================================================
--- pcbsd/trunk/PBCsource/pbistart.c	2007-11-09 02:38:37 UTC (rev 862)
+++ pcbsd/trunk/PBCsource/pbistart.c	2007-11-09 15:02:32 UTC (rev 863)
@@ -29,10 +29,12 @@
  int file;
  int charread;
  int textmode;
+ int acceptlic;
  int tarexit = 0;
  int extractmode = 0;
 
 textmode = 0;
+acceptlic = 0;
 
 
 
@@ -47,14 +49,17 @@
   if ( strcmp(argv[1], "-text" ) == 0 )
   {
 	textmode = 1;
-        //printf("Text mode disabled in this release!\n");
-	//exit(0);
+        if ( argc >= 3 )
+        {
+            if ( strcmp(argv[2], "-accept" ) == 0)
+            {
+               acceptlic = 1;
+            }
+        }
   }
   if ( strcmp(argv[1], "-extract" ) == 0 )
   {
 	extractmode = 1;
-        //printf("Text mode disabled in this release!\n");
-	//exit(0);
   }
 }
 
@@ -343,7 +348,11 @@
 LD_LIBRARY_PATH=/Programs/.libs/ ; export LD_LIBRARY_PATH\n\
 cd ");
 strcat(pbiscript, pbitmpdir);
-strcat(pbiscript, "\n./PBItext\n\" > ");
+if ( acceptlic == 0 ) {
+  strcat(pbiscript, "\n./PBItext\n\" > ");
+} else {
+  strcat(pbiscript, "\n./PBItext -accept\n\" > ");
+}
 strcat(pbiscript, pbitmpdir);
 strcat(pbiscript, "/.pbistart");
 



More information about the Commits mailing list