summaryrefslogtreecommitdiff
path: root/security/sssd/files/patch-src__util__find_uid.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/sssd/files/patch-src__util__find_uid.c')
-rw-r--r--security/sssd/files/patch-src__util__find_uid.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/security/sssd/files/patch-src__util__find_uid.c b/security/sssd/files/patch-src__util__find_uid.c
index eef9470b363c..38a31323880a 100644
--- a/security/sssd/files/patch-src__util__find_uid.c
+++ b/security/sssd/files/patch-src__util__find_uid.c
@@ -1,14 +1,5 @@
-From ccc51217c877dde1857300662fdacab2298f5816 Mon Sep 17 00:00:00 2001
-From: Lukas Slebodnik <lukas.slebodnik@intrak.sk>
-Date: Wed, 6 Nov 2013 22:01:21 +0100
-Subject: [PATCH 21/25] patch-src__util__find_uid.c
-
----
- src/util/find_uid.c | 9 ++++-----
- 1 file changed, 4 insertions(+), 5 deletions(-)
-
diff --git src/util/find_uid.c src/util/find_uid.c
-index d34a4ab..9dec900 100644
+index 4c8f73a..40f3690 100644
--- src/util/find_uid.c
+++ src/util/find_uid.c
@@ -67,7 +67,7 @@ static errno_t get_uid_from_pid(const pid_t pid, uid_t *uid)
@@ -18,9 +9,9 @@ index d34a4ab..9dec900 100644
- ret = snprintf(path, PATHLEN, "/proc/%d/status", pid);
+ ret = snprintf(path, PATHLEN, "/compat/linux/proc/%d/status", pid);
if (ret < 0) {
- DEBUG(1, ("snprintf failed"));
+ DEBUG(SSSDBG_CRIT_FAILURE, "snprintf failed");
return EINVAL;
-@@ -201,12 +201,12 @@ static errno_t get_active_uid_linux(hash_table_t *table, uid_t search_uid)
+@@ -207,12 +207,12 @@ static errno_t get_active_uid_linux(hash_table_t *table, uid_t search_uid)
struct dirent *dirent;
int ret, err;
pid_t pid = -1;
@@ -34,8 +25,8 @@ index d34a4ab..9dec900 100644
+ proc_dir = opendir("/compat/linux/proc");
if (proc_dir == NULL) {
ret = errno;
- DEBUG(1, ("Cannot open proc dir.\n"));
-@@ -280,9 +280,8 @@ done:
+ DEBUG(SSSDBG_CRIT_FAILURE, "Cannot open proc dir.\n");
+@@ -287,9 +287,8 @@ done:
errno_t get_uid_table(TALLOC_CTX *mem_ctx, hash_table_t **table)
{
@@ -46,6 +37,3 @@ index d34a4ab..9dec900 100644
ret = hash_create_ex(INITIAL_TABLE_SIZE, table, 0, 0, 0, 0,
hash_talloc, hash_talloc_free, mem_ctx,
NULL, NULL);
---
-1.8.0
-