From 9bfe6ccdf1143c9f5409d17908f40c7544ceb119 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 15 Apr 2011 12:49:25 +0000 Subject: 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 --- 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 */ -- cgit v0.9