summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2017-10-03 16:18:17 -0400
committerRay Strode <rstrode@redhat.com>2017-10-03 16:18:27 -0400
commite6f5fa6d95e2661477471c6ff1a6a0c379421785 (patch)
tree553dca5d73aaf342f7b766987c648dc4b9b3a277 /common
parent6594b1f262ffaa3d120c0b23f92bad2802f17e4a (diff)
downloadgdm-e6f5fa6d95e2661477471c6ff1a6a0c379421785.tar.gz
Revert "common: Also set GROUP in scripts"
This reverts commit 6594b1f262ffaa3d120c0b23f92bad2802f17e4a.
Diffstat (limited to 'common')
-rw-r--r--common/gdm-common.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/common/gdm-common.c b/common/gdm-common.c
index 0bc2b417..31fc810a 100644
--- a/common/gdm-common.c
+++ b/common/gdm-common.c
@@ -26,7 +26,6 @@
#include <locale.h>
#include <fcntl.h>
#include <sys/wait.h>
-#include <grp.h>
#include <pwd.h>
#include <glib.h>
@@ -98,24 +97,6 @@ gdm_get_pwent_for_name (const char *name,
return (pwent != NULL);
}
-gboolean
-gdm_get_grent_for_gid (gint gid,
- struct grent **grentp)
-{
- struct group *grent;
-
- do {
- errno = 0;
- grent = getgrgid (gid);
- } while (grent == NULL && errno == EINTR);
-
- if (pwentp != NULL) {
- *grentp = grent;
- }
-
- return (grent != NULL);
-}
-
int
gdm_wait_on_and_disown_pid (int pid,
int timeout)
@@ -605,13 +586,6 @@ gdm_get_script_environment (const char *username,
g_hash_table_insert (hash, g_strdup ("SHELL"),
g_strdup (pwent->pw_shell));
-
- /* Also get group name and propagate down */
- struct group *grent;
-
- if (gdm_get_grent_for_gid (pwent->pw_gid, &grent)) {
- g_hash_table_insert (hash, g_strdup ("GROUP"), g_strdup (grent->gr_name));
- }
}
}