[Pkg-utopia-commits] r256 - packages/experimental/gnome-volume-manager/debian/patches

Sjoerd Simons sjoerd@costa.debian.org
Wed, 22 Jun 2005 15:31:27 +0000


Author: sjoerd
Date: 2005-06-22 15:31:27 +0000 (Wed, 22 Jun 2005)
New Revision: 256

Modified:
   packages/experimental/gnome-volume-manager/debian/patches/06_pmount_crypt.patch
   packages/experimental/gnome-volume-manager/debian/patches/10_improve_mounting.patch
Log:
Negate usage of g_strcasecmp

Modified: packages/experimental/gnome-volume-manager/debian/patches/06_pmount_crypt.patch
===================================================================
--- packages/experimental/gnome-volume-manager/debian/patches/06_pmount_crypt.patch	2005-06-22 14:58:11 UTC (rev 255)
+++ packages/experimental/gnome-volume-manager/debian/patches/06_pmount_crypt.patch	2005-06-22 15:31:27 UTC (rev 256)
@@ -174,7 +174,7 @@
 +	}
 +
 +	/* Check for encrypted device */
-+	if (fsusage && g_strcasecmp(fsusage, "crypto")) {
++	if (fsusage && !g_strcasecmp(fsusage, "crypto")) {
 +		dbg ("encrypted volume found\n");
 +		gvm_device_mount_encrypted (udi);
 +		libhal_free_string(fsusage);

Modified: packages/experimental/gnome-volume-manager/debian/patches/10_improve_mounting.patch
===================================================================
--- packages/experimental/gnome-volume-manager/debian/patches/10_improve_mounting.patch	2005-06-22 14:58:11 UTC (rev 255)
+++ packages/experimental/gnome-volume-manager/debian/patches/10_improve_mounting.patch	2005-06-22 15:31:27 UTC (rev 256)
@@ -66,7 +66,7 @@
  
  	/* Check for encrypted device */
 -	if (fsusage && g_strcasecmp(fsusage, "crypto")) {
-+	if (g_strcasecmp(fsusage, "crypto")) {
++	if (!g_strcasecmp(fsusage, "crypto")) {
  		dbg ("encrypted volume found\n");
  		gvm_device_mount_encrypted (udi);
 +		if (run_policy) {
@@ -76,7 +76,7 @@
  		libhal_free_string(fsusage);
  		return TRUE;
  	}
-+	if (!g_strcasecmp(fsusage, "filesystem")) {
++	if (g_strcasecmp(fsusage, "filesystem")) {
 +		dbg("%s isn't a filesystem\n", udi);
 +		libhal_free_string(fsusage);
 +		return FALSE;