Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
2000-04-27  Ulrich Drepper  <drepper@redhat.com>

	* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
	overflows in conversion from ASCII.

2000-04-26  Jakub Jelinek  <jakub@redhat.com>

	* Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
	* Makerules (full_config_sysdirs): Likewise.
	* MakeTAGS (full_config_sysdirs): Likewise.

2000-04-26  Jakub Jelinek  <jakub@redhat.com>

	* .cvsignore: Remove linuxthreads.
	* po/.cvsignore: Remove *.pot.
	* posix/glob/.cvsignore: Removed.
	* sysdeps/unix/bsd/osf/.cvsignore: Removed.

2000-04-25  Andreas Jaeger  <aj@suse.de>

	* conform/Makefile (distribute): Also distribute contents of
	subdirectories.

	* Makerules (no_deps): Remove abi-versions.h.

	* nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.

2000-04-25  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/sparc/sparc64/elf/Dist: Remove.
	* sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
	* sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
	* sysdeps/sparc/sparc64/elf/crtend.S: Remove.
	* sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
	* sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
	objects.

2000-04-25  Thorsten Kukuk  <kukuk@suse.de>

	* nscd/grpcache.c: Fix gr_name pointer [PR/1702].

2000-04-23  Bruno Haible  <clisp.cons.org>

	* intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
	* intl/l10nflist.c: Likewise.

2000-04-23  Bruno Haible  <clisp.cons.org>

	* intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
	__libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
	* intl/textdomain.c [!_LIBC]: Likewise.
	* intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
	__libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
	* intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
	syntax error.

2000-04-23  Bruno Haible  <clisp.cons.org>

	* intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
	character set conversion also in the case the translation was found
	after a hash collision or through binary search. Store the maximum
	index together with the converted message. Use iconv() when available.
	In case of out of memory during conversion, return the unconverted
	translated string, not NULL.
  • Loading branch information
Ulrich Drepper committed Apr 28, 2000
1 parent 0e4ee10 commit 0a55a28
Show file tree
Hide file tree
Showing 23 changed files with 329 additions and 324 deletions.
2 changes: 0 additions & 2 deletions .cvsignore
Expand Up @@ -19,8 +19,6 @@ analysis
docs
releases

linuxthreads

libc.prj .libc.prcs_aux
libc.proj .snprj

Expand Down
65 changes: 65 additions & 0 deletions ChangeLog
@@ -1,3 +1,68 @@
2000-04-27 Ulrich Drepper <drepper@redhat.com>

* hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups): Handle
overflows in conversion from ASCII.

2000-04-26 Jakub Jelinek <jakub@redhat.com>

* Makeconfig (full_config_sysdirs): Renamed from full-config-sysdirs.
* Makerules (full_config_sysdirs): Likewise.
* MakeTAGS (full_config_sysdirs): Likewise.

2000-04-26 Jakub Jelinek <jakub@redhat.com>

* .cvsignore: Remove linuxthreads.
* po/.cvsignore: Remove *.pot.
* posix/glob/.cvsignore: Removed.
* sysdeps/unix/bsd/osf/.cvsignore: Removed.

2000-04-25 Andreas Jaeger <aj@suse.de>

* conform/Makefile (distribute): Also distribute contents of
subdirectories.

* Makerules (no_deps): Remove abi-versions.h.

* nis/nis_print_group_entry.c: Include alloca.h for alloca prototype.

2000-04-25 Jakub Jelinek <jakub@redhat.com>

* sysdeps/sparc/sparc64/elf/Dist: Remove.
* sysdeps/sparc/sparc64/elf/crtbegin.S: Remove.
* sysdeps/sparc/sparc64/elf/crtbeginS.S: Remove.
* sysdeps/sparc/sparc64/elf/crtend.S: Remove.
* sysdeps/sparc/sparc64/elf/crtendS.S: Remove.
* sysdeps/sparc/sparc64/elf/Makefile: Don't build crtbegin/crtend
objects.

2000-04-25 Thorsten Kukuk <kukuk@suse.de>

* nscd/grpcache.c: Fix gr_name pointer [PR/1702].

2000-04-23 Bruno Haible <clisp.cons.org>

* intl/dcigettext.c: Define _GNU_SOURCE as early as possible.
* intl/l10nflist.c: Likewise.

2000-04-23 Bruno Haible <clisp.cons.org>

* intl/bindtextdom.c [!_LIBC]: Define __libc_rwlock_define,
__libc_rwlock_wrlock, __libc_rwlock_unlock as empty.
* intl/textdomain.c [!_LIBC]: Likewise.
* intl/dcigettext.c [!_LIBC]: Define __libc_rwlock_define_initialized,
__libc_rwlock_rdlock, __libc_rwlock_unlock as empty.
* intl/loadmsgcat.c (_nl_load_domain) [!_LIBC, !HAVE_ICONV]: Avoid
syntax error.

2000-04-23 Bruno Haible <clisp.cons.org>

* intl/dcigettext.c (_nl_find_msg): Do the plural treatment and
character set conversion also in the case the translation was found
after a hash collision or through binary search. Store the maximum
index together with the converted message. Use iconv() when available.
In case of out of memory during conversion, return the unconverted
translated string, not NULL.

2000-04-25 Jes Sorensen <Jes.Sorensen@cern.ch>

* shlib-versions: Rename ia64 dynamic linker to ld-linux-ia64.so.1
Expand Down
2 changes: 1 addition & 1 deletion MakeTAGS
Expand Up @@ -39,7 +39,7 @@ tags_sources = $(all-sources) $(all-headers) $(all-dist)
endif # ctype
endif # No tags_sources

sysdep-dirs := $(full-config-sysdirs)
sysdep-dirs := $(full_config_sysdirs)

ifndef sysdep_dirs
# Find all sysdep directories.
Expand Down
4 changes: 2 additions & 2 deletions Makeconfig
Expand Up @@ -93,7 +93,7 @@ binfmt-subdir = aout
endif

# Complete path to sysdep dirs.
export full-config-sysdirs := $(addprefix $(..),$(config-sysdirs))
export full_config_sysdirs := $(addprefix $(..),$(config-sysdirs))

# Run config.status to update config.make and config.h. We don't show the
# dependence of config.h to Make, because it is only touched when it
Expand All @@ -107,7 +107,7 @@ $(common-objpfx)config.make: $(common-objpfx)config.status \
# Find all the sysdeps configure fragments, to make sure we re-run
# configure when any of them changes.
$(common-objpfx)config.status: $(..)version.h $(..)configure \
$(foreach dir,$(full-config-sysdirs),\
$(foreach dir,$(full_config_sysdirs),\
$(wildcard \
$(dir)/Implies) \
$(patsubst %.in,%,\
Expand Down
6 changes: 3 additions & 3 deletions Makerules
Expand Up @@ -58,13 +58,13 @@ include $(..)Makeconfig
endif

# `configure' writes a definition of `config-sysdirs' in `config.make'.
sysdirs = $(strip $(full-config-sysdirs))
sysdirs = $(strip $(full_config_sysdirs))

+sysdir_pfx = $(common-objpfx)

export sysdirs := $(sysdirs)

+sysdep_dirs := $(full-config-sysdirs)
+sysdep_dirs := $(full_config_sysdirs)
ifdef objdir
+sysdep_dirs := $(objdir) $(+sysdep_dirs)
endif
Expand Down Expand Up @@ -283,7 +283,7 @@ ifeq ($(versioning),yes)
-include $(common-objpfx)sysd-versions
$(addprefix $(common-objpfx),$(version-maps)): $(common-objpfx)sysd-versions
common-generated += $(version-maps)
postclean-generated += sysd-versions Versions.all
postclean-generated += sysd-versions Versions.all abi-versions.h

ifndef avoid-generated
ifneq ($(sysd-versions-subdirs),$(all-subdirs) $(config-sysdirs))
Expand Down
5 changes: 3 additions & 2 deletions conform/Makefile
@@ -1,4 +1,4 @@
# Copyright (C) 1999 Free Software Foundation, Inc.
# Copyright (C) 1999, 2000 Free Software Foundation, Inc.
# This file is part of the GNU C Library.

# The GNU C Library is free software; you can redistribute it and/or
Expand All @@ -21,4 +21,5 @@
#
subdir := conform

distribute = conformtest.pl $(wildcard data/*.h-data)
distribute = conformtest.pl $(wildcard data/*.h-data) \
$(wildcard data/*/*.h-data)
37 changes: 23 additions & 14 deletions hesiod/nss_hesiod/hesiod-grp.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
/* Copyright (C) 1997, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Mark Kettenis <kettenis@phys.uva.nl>, 1997.
Expand Down Expand Up @@ -188,14 +188,19 @@ internal_gid_from_group (void *context, const char *groupname, gid_t *group)
{
char *endp;
char *q = ++p;
long int val;

q = p;
while (*q != '\0' && *q != ':')
++q;

*group = strtol (p, &endp, 10);
if (endp == q && endp != p)
status = NSS_STATUS_SUCCESS;
val = strtol (p, &endp, 10);
if (sizeof (gid_t) == sizeof (long int) || (gid_t) val == val)
{
*group = val;
if (endp == q && endp != p)
status = NSS_STATUS_SUCCESS;
}
}
hesiod_free_list (context, grp_res);
}
Expand All @@ -219,7 +224,7 @@ _nss_hesiod_initgroups (const char *user, gid_t group, long int *start,

if (list == NULL)
{
hesiod_end(context);
hesiod_end (context);
return errno == ENOENT ? NSS_STATUS_NOTFOUND : NSS_STATUS_UNAVAIL;
}

Expand All @@ -231,6 +236,7 @@ _nss_hesiod_initgroups (const char *user, gid_t group, long int *start,
{
char *endp;
char *q;
long int val;

status = NSS_STATUS_NOTFOUND;

Expand All @@ -241,21 +247,24 @@ _nss_hesiod_initgroups (const char *user, gid_t group, long int *start,
if (*q != '\0')
*q++ = '\0';

group = strtol (p, &endp, 10);
if (*endp == '\0' && endp != p)
status = NSS_STATUS_SUCCESS;
else
status = internal_gid_from_group (context, p, &group);
val = strtol (p, &endp, 10);
if (sizeof (gid_t) == sizeof (long int) || (gid_t) val == val)
{
if (*endp == '\0' && endp != p)
status = NSS_STATUS_SUCCESS;
else
status = internal_gid_from_group (context, p, &group);

if (status == NSS_STATUS_SUCCESS
&& !internal_gid_in_list (groups, group, *start))
groups[(*start)++] = group;
if (status == NSS_STATUS_SUCCESS
&& !internal_gid_in_list (groups, group, *start))
groups[(*start)++] = group;
}

p = q;
}

hesiod_free_list (context, list);
hesiod_end(context);
hesiod_end (context);

return NSS_STATUS_SUCCESS;
}
6 changes: 3 additions & 3 deletions intl/bindtextdom.c
Expand Up @@ -52,9 +52,9 @@ void free ();
# include <bits/libc-lock.h>
#else
/* Provide dummy implementation if this is outside glibc. */
# define __libc_lock_define_initialized (CLASS, NAME)
# define __libc_lock_lock(NAME)
# define __libc_lock_unlock(NAME)
# define __libc_rwlock_define(CLASS, NAME)
# define __libc_rwlock_wrlock(NAME)
# define __libc_rwlock_unlock(NAME)
#endif

/* @@ end of prolog @@ */
Expand Down

0 comments on commit 0a55a28

Please sign in to comment.