Mercurial > hg > xemacs-beta
changeset 5735:ff13c44ce0d9
Hack in rudimentary group support for WIN32 in support of Mats ID-FORMAT patch
author | Vin Shelton <acs@xemacs.org> |
---|---|
date | Wed, 24 Apr 2013 20:16:14 -0400 |
parents | aebf53236cff |
children | 3192994c49ca |
files | src/ChangeLog src/dired.c src/sysdep.c |
diffstat | 3 files changed, 15 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat Apr 20 00:33:15 2013 +0200 +++ b/src/ChangeLog Wed Apr 24 20:16:14 2013 -0400 @@ -1,3 +1,9 @@ +2013-04-23 Vin Shelton <acs@xemacs.org> + + * sysdep.c (qxe_getgrgid): Hack in WIN32_NATIVE group support. + * dired.c (file_attributes): Add a hack for group name in native + Windows builds. + 2013-04-19 Mats Lidell <matsl@xemacs.org> * sysdep.c (qxe_getgrgid): Encapsulation of getgrgid.
--- a/src/dired.c Sat Apr 20 00:33:15 2013 +0200 +++ b/src/dired.c Wed Apr 24 20:16:14 2013 -0400 @@ -948,7 +948,11 @@ struct group *gr = qxe_getgrgid (s.st_gid); uidInfo = build_istring (pw ? (Ibyte *) pw->pw_name : NULL); +#ifndef WIN32_NATIVE gidInfo = build_istring (gr ? (Ibyte *) gr->gr_name : NULL); +#else + gidInfo = build_istring (NULL); +#endif //WIN32_NATIVE } RETURN_UNGCPRO (listn (12,
--- a/src/sysdep.c Sat Apr 20 00:33:15 2013 +0200 +++ b/src/sysdep.c Wed Apr 24 20:16:14 2013 -0400 @@ -3127,11 +3127,14 @@ #endif /* WIN32_NATIVE */ } -// TODO: WIN32 mapping struct group * qxe_getgrgid (gid_t gid) { - return getgrgid (gid); +#ifdef WIN32_NATIVE + return NULL; +#else + return getgrgid (gid); +#endif /* WIN32_NATIVE */ } #ifndef WIN32_NATIVE