[Xfce4-commits] r25366 - in squeeze/trunk: libsqueeze src

Stephan Arts stephan at xfce.org
Mon Apr 2 17:47:37 CEST 2007


Author: stephan
Date: 2007-04-02 15:47:37 +0000 (Mon, 02 Apr 2007)
New Revision: 25366

Modified:
   squeeze/trunk/libsqueeze/command-builder-rar.c
   squeeze/trunk/src/new_dialog.c
Log:
fix append of zip extention

Modified: squeeze/trunk/libsqueeze/command-builder-rar.c
===================================================================
--- squeeze/trunk/libsqueeze/command-builder-rar.c	2007-04-02 15:29:30 UTC (rev 25365)
+++ squeeze/trunk/libsqueeze/command-builder-rar.c	2007-04-02 15:47:37 UTC (rev 25366)
@@ -276,6 +276,11 @@
 			else if(!entry)
 			{
 				/* strip first ' ' and last '\n' */
+				if(line[0] == '*')
+				{
+					/* we've just detected a password-protected entry, what to do?! */
+					g_print("passwd protected entry found\n");
+				}
 				temp_filename = line+1;
 				line[linesize - 1] = '\0';
 				entry = lsq_archive_add_file(archive, temp_filename);

Modified: squeeze/trunk/src/new_dialog.c
===================================================================
--- squeeze/trunk/src/new_dialog.c	2007-04-02 15:29:30 UTC (rev 25365)
+++ squeeze/trunk/src/new_dialog.c	2007-04-02 15:47:37 UTC (rev 25366)
@@ -141,7 +141,7 @@
 		if(!strcmp(mime_type, "application/x-tarz")) suffix = ".tar.Z";
 		if(!strcmp(mime_type, "application/x-tzo")) suffix = ".tzo";
 
-		if(!strcmp(mime_type, "application/x-zip")) suffix = ".zip";
+		if(!strcmp(mime_type, "application/zip")) suffix = ".zip";
 
 		if(!strcmp(mime_type, "application/x-rar"))  suffix = ".rar";
 



More information about the Xfce4-commits mailing list