On Tue, Jan 25, 2005 at 12:26:00PM +0100, Ludovic Court?s wrote: > Hi, > Hello Ludovic,
Thanks for your comments. Here is a new patch:
--- xchat-2.4.1.orig/plugins/python/python.c 2004-10-18 14:12:21.000000000
+0200
+++ xchat-2.4.1/plugins/python/python.c 2005-02-07 22:30:40.000000000 +0100
@@ -327,12 +327,18 @@ Util_BuildList(char *word[])
static void
Util_Autoload()
{
- char oldcwd[PATH_MAX];
+ #ifdef _GNU_SOURCE
+ char *oldcwd = get_current_dir_name ();
+ #else
+ char oldcwd[PATH_MAX];
+ #endif
const char *dir_name;
struct dirent *ent;
DIR *dir;
- if (getcwd(oldcwd, PATH_MAX) == NULL)
+ #ifndef _GNU_SOURCE
+ if (getcwd(oldcwd, PATH_MAX) == NULL)
return;
+ #endif
/* we need local filesystem encoding for chdir, opendir etc */
dir_name = xchat_get_info(ph, "xchatdirfs");
/* fallback for pre-2.0.9 xchat */
@@ -350,6 +356,9 @@ Util_Autoload()
}
closedir(dir);
chdir(oldcwd);
+ #ifdef _GNU_SOURCE
+ free(oldcwd);
+ #endif
}
static char *
Do you think it's ok now?
If it is, should I forward it to the Debian maintainer asking him to
forward upstream, or should I forward it directly to the upstream
author?
> Thanks,
> Ludovic.
Thanks a lot for your help :)
Best regards,
Chris
--
,''`. Christopher `Physicman' Bodenstein <[EMAIL PROTECTED]>
: :' : Physicman.Net : http://www.physicman.net/
`. `' Debian GNU/Hurd : http://www.debian.org/ports/hurd/
`- The Hurd wiki : http://hurd.gnufans.org/
signature.asc
Description: Digital signature
_______________________________________________ Help-hurd mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-hurd
