From 4708fffff2938b9a191178f35f2bddcfb2a7ee1e Mon Sep 17 00:00:00 2001 From: "mahlon@martini.nu" Date: Tue, 6 Sep 2011 23:05:34 +0000 Subject: [PATCH] Make sure the hasSubordinates attribute is defined before checking its value. FossilOrigin-Name: 812ad96eda973f40ffd403c5125a1a0b963afc93f573e0cf0d34df6629d16db9 --- shelldap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shelldap b/shelldap index 5e70f60..d53d211 100755 --- a/shelldap +++ b/shelldap @@ -1513,7 +1513,8 @@ sub run_list # if this entry is a container for other entries, append a # trailing slash. - $dn .= '/' if ($e->get_value('hasSubordinates') eq 'TRUE'); + $dn .= '/' if $e->get_value('hasSubordinates') && + $e->get_value('hasSubordinates') eq 'TRUE'; # additional arguments/attributes were given; show their values #