summaryrefslogtreecommitdiffstats
path: root/server/infopipe/infopipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/infopipe/infopipe.c')
-rw-r--r--server/infopipe/infopipe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/infopipe/infopipe.c b/server/infopipe/infopipe.c
index 272bb166e..2972b565c 100644
--- a/server/infopipe/infopipe.c
+++ b/server/infopipe/infopipe.c
@@ -390,7 +390,7 @@ int infp_get_attribute_type(const char *attribute)
return attribute_type;
}
-bool infp_get_permissions(const char *username,
+bool infp_get_permissions(const char *caller,
struct sss_domain_info *domain,
int object_type,
const char *instance,
@@ -402,7 +402,7 @@ bool infp_get_permissions(const char *username,
* Note: this is buggy. It will return true for ALL requests,
* even the nonsensical ones.
*/
- if (strcmp(username, "root") == 0)
+ if (strcmp(caller, "root") == 0)
return true;
return false;
}