Bug#101135: [hurd] doesn't compile (fwd)

Brian Bruns camber at ais.org
Tue Jun 19 08:37:47 EDT 2001



Checked in a fix this morning (dynamically sizes too).

Brian

On Mon, 18 Jun 2001, Steve Langasek wrote:

> Hello,
> 
> One of the Debian hurd porters submitted the following bug report regarding
> freetds.  As Marcus notes, the fix is rather non-intrusive, so it'd be great
> to see this included for 0.52.
> 
> Cheers,
> Steve Langasek
> postmodern programmer
> 
> ---------- Forwarded message ----------
> Date: Sat, 16 Jun 2001 21:37:46 +0200
> From: Marcus Brinkmann <Marcus.Brinkmann at ruhr-uni-bochum.de>
> To: submit at bugs.debian.org
> Subject: Bug#101135: [hurd] doesn't compile
> Resent-Date: Sat, 16 Jun 2001 19:49:18 GMT
> Resent-From: Marcus Brinkmann <Marcus.Brinkmann at ruhr-uni-bochum.de>
> Resent-To: debian-bugs-dist at lists.debian.org
> Resent-cc: Steve Langasek <vorlon at debian.org>
> 
> Package: freetds
> Version: 0.51-4
> Severity: important
> 
> Hi,
> 
> freetds doesn't compile because the Hurd doesn't define PATH_MAX (it
> does not have a fixed limit).  Anyway, it seems that freetds is restricting
> the path by MAXPATH anyway.  Instead fixing the code to allow arbitrary
> filename lengths (which would be preferable), I am giving the quick fix that
> is least intrusive.
> 
> Please apply the below patch and forward it upstream, too.
> 
> Thanks,
> Marcus
> 
> 
> --- freetds-0.51/src/tds/util.c.before	Sat Jun 16 21:18:06 2001
> +++ freetds-0.51/src/tds/util.c	Sat Jun 16 21:25:31 2001
> @@ -33,7 +33,6 @@
>  #ifdef WIN32
>  #include <windows.h>
>  #include <stdio.h>
> -#define PATH_MAX 255
>  #endif
>  #ifndef WIN32
>  #include <netdb.h>
> @@ -139,7 +138,7 @@
>     char       *ip_port, /* (O) Port number for database server           */
>     char       *tds_ver) /* (O) Protocol version to use when connecting   */
>  {
> -   char  pathname[PATH_MAX+1];
> +   char  pathname[MAXPATH];
>     char  line[255];
>     char  tmp_ip[sizeof(line)];
>     char  tmp_port[sizeof(line)];
> 
> 
> ---
> You are currently subscribed to freetds as: [camber at ais.org]
> To unsubscribe, forward this message to $subst('Email.Unsub')
> 




More information about the FreeTDS mailing list