[gvfs] gdu volume monitor: Fix check for symlinks in /dev, was reversed



commit 9bfe6ccdf1143c9f5409d17908f40c7544ceb119
Author: Alexander Larsson <alexl redhat com>
Date:   Fri Apr 15 14:49:25 2011 +0200

    gdu volume monitor: Fix check for symlinks in /dev, was reversed
    
    Spotted by Emilio Pozuelo Monfort in
    https://bugzilla.gnome.org/show_bug.cgi?id=601497

 monitor/gdu/ggduvolumemonitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/monitor/gdu/ggduvolumemonitor.c b/monitor/gdu/ggduvolumemonitor.c
index 794d354..1066f4f 100644
--- a/monitor/gdu/ggduvolumemonitor.c
+++ b/monitor/gdu/ggduvolumemonitor.c
@@ -1427,7 +1427,7 @@ update_fstab_volumes (GGduVolumeMonitor *monitor,
           GduDevice *device;
 
           /* doesn't exist */
-          if (realpath (device_file, resolved_path) != NULL)
+          if (realpath (device_file, resolved_path) == NULL)
             continue;
 
           /* is handled by DKD */



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