diff options
author | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-12-10 15:46:31 +0000 |
---|---|---|
committer | tv <tv@99302b65-d5f7-0310-b3dd-f8cd6f4e3d94> | 2008-12-10 15:46:31 +0000 |
commit | 3fc7093372fb413b988098efb4d4021bd73826bb (patch) | |
tree | 87cdd146058f81d7f4af2847560f4a7e2014596d | |
parent | bb0c2849b1b11d4f21c44720519ef52d3b7019b5 (diff) | |
download | draksnapshot-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-- | NEWS | 3 | ||||
-rwxr-xr-x | draksnapshot-applet | 5 |
2 files changed, 6 insertions, 2 deletions
@@ -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'); } |