[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#295118: libc0.3-dev: undefined references to setres{g,u}id



Package: libc0.3-dev
Version: 2.3.2.ds1-20
Severity: important
Tags: patch

The following patch by Barry DeFrese adds weak_aliases to
setresgid and setresuid, fixing undefined references when e.g. building
putty (http://lists.debian.org/debian-hurd/2005/02/msg00045.html). It
got submitted by Barry in
http://lists.gnu.org/archive/html/bug-hurd/2005-02/msg00114.html,
acked by Marcus Brinkmann off-list and submitted upstream by Alfred M.
Szmidt in http://sources.redhat.com/ml/libc-alpha/2005-02/msg00038.html.

Please apply.


thanks,

Michael
2005-02-10  Barry deFrese  <bddebian@comcast.net>

	* sysdeps/mach/hurd/setresgid.c: Add weak alias.
	* sysdeps/mach/hurd/setresuid.c: Add weak alias.

Index: setresgid.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/setresgid.c,v
retrieving revision 1.1
diff -u -r1.1 setresgid.c
--- setresgid.c	14 Oct 2002 01:03:11 -0000	1.1
+++ setresgid.c	13 Feb 2005 20:08:02 -0000
@@ -1,5 +1,5 @@
 /* setresgid -- set effective group ID, real group ID, and saved-set group ID
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005 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
@@ -75,3 +75,4 @@
   return err;
 }
 libc_hidden_def (__setresgid)
+weak_alias (__setresgid, setresgid)
Index: setresuid.c
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/mach/hurd/setresuid.c,v
retrieving revision 1.1
diff -u -r1.1 setresuid.c
--- setresuid.c	14 Oct 2002 01:03:11 -0000	1.1
+++ setresuid.c	13 Feb 2005 20:08:02 -0000
@@ -1,5 +1,5 @@
 /* setresuid -- set effective user ID, real user ID, and saved-set user ID
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2005 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
@@ -75,3 +75,4 @@
   return err;
 }
 libc_hidden_def (__setresuid)
+weak_alias (__setresuid, setresuid)

Reply to: