summaryrefslogtreecommitdiffstats
path: root/server/infopipe/infopipe.c
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-03-05 12:39:29 -0500
committerStephen Gallagher <sgallagh@redhat.com>2009-03-05 13:52:18 -0500
commit1083065853c9d95137c620a2a1af0ad87c9dcf58 (patch)
tree3837b96ef95a0833220a0cce69c1ea75be724da7 /server/infopipe/infopipe.c
parent917979b52ceb2519be8b114ecb51d6a8e01fe0d7 (diff)
downloadsssd-1083065853c9d95137c620a2a1af0ad87c9dcf58.tar.gz
sssd-1083065853c9d95137c620a2a1af0ad87c9dcf58.tar.xz
sssd-1083065853c9d95137c620a2a1af0ad87c9dcf58.zip
Adding support for SetUserUID to the InfoPipe
The InfoPipe interface Set_YouReallyDoNotWantToUseThisFunction_UserUID1 is now available. I also fixed a memory leak in SetUserAttributes and modified the prototype for infp_get_permissions to make it more clear that the first argument is the caller's username, not the username being checked for permission.
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;
}