summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-12-10 15:46:31 +0000
committertv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94>2008-12-10 15:46:31 +0000
commit3fc7093372fb413b988098efb4d4021bd73826bb (patch)
tree87cdd146058f81d7f4af2847560f4a7e2014596d
parentbb0c2849b1b11d4f21c44720519ef52d3b7019b5 (diff)
downloaddraksnapshot-3fc7093372fb413b988098efb4d4021bd73826bb.tar
draksnapshot-3fc7093372fb413b988098efb4d4021bd73826bb.tar.gz
draksnapshot-3fc7093372fb413b988098efb4d4021bd73826bb.tar.bz2
draksnapshot-3fc7093372fb413b988098efb4d4021bd73826bb.tar.xz
draksnapshot-3fc7093372fb413b988098efb4d4021bd73826bb.zip
(firstCheck) move the eval{} here so that all callers got protected,
thus fixing crash when hal is confused (#44966) git-svn-id: http://svn.mandriva.com/svn/soft/draksnapshot/trunk@250360 99302b65-d5f7-0310-b3dd-f8cd6f4e3d94
-rw-r--r--NEWS3
-rwxr-xr-xdraksnapshot-applet5
2 files changed, 6 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 8ac39aa..0b5424d 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- applet:
+ o fix crash when hal is confused (#44966)
+
Version 0.19 - 30 September 2008, Thierry Vignaud
- configurator:
diff --git a/draksnapshot-applet b/draksnapshot-applet
index 765d31f..2af1bc4 100755
--- a/draksnapshot-applet
+++ b/draksnapshot-applet
@@ -103,7 +103,7 @@ if ($dbus && $do) {
# hide if needed (evals really are needed):
if (eval { 'DeviceRemoved' eq $msg->get_member() }) {
- eval { firstCheck() };
+ firstCheck();
return 0;
}
@@ -210,7 +210,8 @@ sub configure() {
}
sub firstCheck() {
- my @discs = find_removable_volumes($dbus);
+ # evals really are needed:
+ my @discs = eval { find_removable_volumes($dbus) };
go2State(@discs ? 'disk_found' : 'okay');
}