Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Steve Langasek <vorlon AT netexpress.net>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Bug#101135: [hurd] doesn't compile (fwd)
  • Date: Mon, 18 Jun 2001 10:56:34 -0500 (CDT)


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)];





Archive powered by MHonArc 2.6.24.

Top of Page