[Utopia] Fix g-b-m mount_all()



Hi!

There is a logic error in gnome-volume-manager's mount_all() function
that breaks automounting at startup:

--- gnome-volume-manager-1.3.2-old/src/manager.c        2005-08-23 18:54:37.000000000 +0200
+++ gnome-volume-manager-1.3.2/src/manager.c    2005-08-23 18:54:47.000000000 +0200
@@ -1721,7 +1721,7 @@
                 if (!do_mount) continue;

                /* mount the device */
-               if (!(dev = libhal_device_get_property_string (ctx, udi, "block.device", &error))) {
+               if ((dev = libhal_device_get_property_string (ctx, udi, "block.device", &error))) {
                        dbg ("mount_all: mounting %s\n", dev);
                        if (is_encrypted)
                            gvm_device_mount_encrypted (udi);

Thanks,

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]