From 66fd022a705cf65cbe37c446dbd87919a43a7fd3 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Mon, 4 Jul 2016 23:05:01 +0200 Subject: lib: irm: search for ap using PATH variable The bind function will search all directories specified in the PATH variable for the ap fed to the irm bind command and check if it is executable by the uid executing irm bind command. Adds missing info logs for the bind/unbind and unreg operations in the irmd. --- src/irmd/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/irmd/main.c') diff --git a/src/irmd/main.c b/src/irmd/main.c index 6e3fd74a..ab637789 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1103,6 +1103,8 @@ static int bind_name(char * name, pthread_rwlock_unlock(&instance->reg_lock); pthread_rwlock_unlock(&instance->state_lock); + LOG_INFO("Bound %s to registered name %s.", ap_name, name); + return 0; } @@ -1142,6 +1144,8 @@ static int unbind_name(char * name, pthread_rwlock_unlock(&instance->reg_lock); pthread_rwlock_unlock(&instance->state_lock); + LOG_INFO("Removed binding from %s to %s.", ap_name, name); + return 0; } @@ -1280,6 +1284,9 @@ static int ap_unreg(char * name, "%s in DIF %s.", rne->name, e->dif_name); --ret; + } else { + LOG_INFO("Unregistered %s from %s.", + rne->name, e->dif_name); } } } -- cgit v1.2.3