From 77f485dc30e5cd81d63cb7a92dc77b3ace69d40d Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Thu, 28 Apr 2011 01:08:32 +0000 Subject: marker: fix NULL deref in logging Fix bad gf_log argument Signed-off-by: Anand Avati BUG: 2852 (Glusterfsd crashes on AMI) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2852 --- xlators/features/marker/src/marker.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 8ab66f46e..041449b40 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -1589,8 +1589,9 @@ marker_setattr_cbk (call_frame_t *frame, void *cookie, xlator_t *this, if (op_ret == -1) { gf_log (this->name, ((op_errno == ENOENT) ? GF_LOG_DEBUG : GF_LOG_ERROR), - "%s occured while creating symlinks for %s", - strerror (op_errno), local->loc.path); + "%s occured during setattr of %s", + strerror (op_errno), + (local ? local->loc.path : "")); } STACK_UNWIND_STRICT (setattr, frame, op_ret, op_errno, statpre, -- cgit