From d376253d1e91b9fc29f6a23253021647e139c2c1 Mon Sep 17 00:00:00 2001 From: Csaba Henk Date: Mon, 7 Feb 2011 01:32:56 +0000 Subject: syncdaemon: fix broken symlink handling in "purge" call Signed-off-by: Csaba Henk Signed-off-by: Anand V. Avati BUG: 2340 ([glusterfs-3.1.2geosyncqa4]: crash in gsyncd script while posix compliance test was running) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2340 --- xlators/features/marker/utils/syncdaemon/resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators') diff --git a/xlators/features/marker/utils/syncdaemon/resource.py b/xlators/features/marker/utils/syncdaemon/resource.py index 6529155a092..f484d1de5c1 100644 --- a/xlators/features/marker/utils/syncdaemon/resource.py +++ b/xlators/features/marker/utils/syncdaemon/resource.py @@ -10,7 +10,7 @@ import tempfile import threading from ctypes import * from ctypes.util import find_library -from errno import EEXIST, ENOENT, ENODATA, ENOTDIR +from errno import EEXIST, ENOENT, ENODATA, ENOTDIR, ELOOP from gconf import gconf import repce @@ -107,7 +107,7 @@ class Server(object): entries = os.listdir(path) except OSError: ex = sys.exc_info()[1] - if ex.errno in (ENOTDIR, ENOENT): + if ex.errno in (ENOTDIR, ENOENT, ELOOP): try: os.unlink(path) return -- cgit