From e63cecc3821eda0cb3ace99479112d68bdc023e6 Mon Sep 17 00:00:00 2001 From: sandman Date: Tue, 29 Oct 2002 16:00:45 +0000 Subject: - fix to scan /proc/mounts and not /etc/mtab for changes (this works on systems where /etc/mtab is symlinked to proc, but fails on familiar) --- (limited to 'core/launcher/stabmon.cpp') diff --git a/core/launcher/stabmon.cpp b/core/launcher/stabmon.cpp index 2911a1c..3d0d534 100644 --- a/core/launcher/stabmon.cpp +++ b/core/launcher/stabmon.cpp @@ -66,7 +66,7 @@ void SysFileMonitor::timerEvent(QTimerEvent*) // st_size is no use, it's 0 for /proc/mounts too. Read it all. static int mtabSize = 0; - QFile f( "/etc/mtab" ); + QFile f( "/proc/mounts" ); if ( f.open(IO_ReadOnly) ) { #if 0 // readAll does not work correctly on sequential devices (as eg. /proc files) -- cgit v0.9.0.2