summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2018-11-10 11:16:17 +0200
committerEli Zaretskii <eliz@gnu.org>2018-11-10 11:16:17 +0200
commitd6b7b60cd0b4af8c0760589e132593b5c716d8ce (patch)
tree140b22b62d9456423ba283aaa2ce827b4d3a26b2 /src/w32.c
parentffb4c76d99ba9d4f5a0d876c23b2837d31291141 (diff)
downloademacs-d6b7b60cd0b4af8c0760589e132593b5c716d8ce.tar.gz
Fix last change
* src/editfns.c (Fgroup_name): Fix the doc string. Move closer to the "group" functions. * src/w32.c (getgrgid): Return NULL if GID is not the group ID of the user of this Emacs session * test/src/editfns-tests.el (test-group-name): Rename from 'group-name'. Add tests for non-Posix hosts. Test error when the argument to group-name is invalid. * etc/NEWS: Fix wording of last added entry.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32.c b/src/w32.c
index e643c421506..3eaa1279dd6 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -2043,7 +2043,9 @@ getpwuid (unsigned uid)
struct group *
getgrgid (gid_t gid)
{
- return &dflt_group;
+ if (gid == dflt_passwd.pw_gid)
+ return &dflt_group;
+ return NULL;
}
struct passwd *