Glenn,
I have applied the following patch to compile ast-cql with the latest
ast-base.
You may want to update ast-cql for the next release.
Philippe Bergheaud
diff -ru old/src/cmd/cia/ciald.c new/src/cmd/cia/ciald.c
--- old/src/cmd/cia/ciald.c 2009-04-22 11:37:19.000000000 +0200
+++ new/src/cmd/cia/ciald.c 2010-09-04 11:40:20.000000000 +0200
@@ -116,7 +116,7 @@
{
sfsprintf(newlib, MAX_ID, "lib%s.A",
opt_info.arg);
libpath=ciamalloc(MAX_PATH);
- if (!pathaccess(libpath, libdirs, newlib,
0, PATH_READ))
+ if (!pathaccess(libpath, libdirs, newlib,
0, PATH_READ, PATH_MAX))
error(ERROR_ERROR, "can't find
library database %s", newlib);
else
insert_list(liblist, (VOID
*)libpath);
diff -ru old/src/cmd/cia/link.c new/src/cmd/cia/link.c
--- old/src/cmd/cia/link.c 2009-02-05 20:37:22.000000000 +0100
+++ new/src/cmd/cia/link.c 2010-09-04 11:43:21.000000000 +0200
@@ -276,7 +276,7 @@
sprintf(pref_file, "%s%s", filelist->prefix, filename);
else if (Dbctl.abspath)
sprintf(pref_file, "%s/%s", Dbctl.pwd, filename);
- pathcanon(pref_file, 0);
+ pathcanon(pref_file, PATH_MAX, 0);
filep=pref_file;
} else filep=filename;
diff -ru old/src/cmd/cql/hix.c new/src/cmd/cql/hix.c
--- old/src/cmd/cql/hix.c 2007-02-14 19:31:50.000000000 +0100
+++ new/src/cmd/cql/hix.c 2010-09-04 11:44:43.000000000 +0200
@@ -421,7 +421,7 @@
return -1;
if ((hix->flags & HIX_TEST1) && st.st_size >= 8 * 1024 *
1024)
sfsetbuf(hix->part->vio.sp, (hix->flags &
HIX_TEST2) ? (void*)0 : (void*)hix->part->vio.sp, 1024 * 1024);
- pathcanon(data, 0);
+ pathcanon(data, PATH_MAX, 0);
}
if (!(hix->part->name = newof(0, char, strlen(data), 3)))
{
@@ -492,7 +492,7 @@
return 0;
}
sfsprintf(buf, sizeof(buf), "%s/%s", dp->name, name);
- s = pathcanon(buf, 0);
+ s = pathcanon(buf, PATH_MAX, 0);
if (!(io = (Io_t*)dtmatch(state.io, buf)))
{
n = s - buf;
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users