[redland-dev] Bug report

Paul Keogh paul.keogh at anam.com
Tue Oct 21 15:54:48 BST 2003


Module: raptor/raptor_uri.c
Function: raptor_uri_uri_string_to_filename()
Environment: WIN32, VC++ 6.0

Description: I think the handling of device specifier (eg c:) in
WIN32 pathnames is incorrect. Specifically, I think the code;

#ifdef WIN32
  if(authority) {
    len+=strlen(authority);
    p=strchr(authority, '|');

should be

#ifdef WIN32
  if(authority) {
    len+=strlen(authority);
    p=strchr(authority, ':');

and subsequent comments and logic in the code seem to suggest this.

Before this change, the subsequent fopen () was on \\d:\... which failed.
Afterwards the fopen () was on d:\... which succeeded.

(or have I missed the plot :-) ?)

Thanks,
Paul.

Paul Keogh
ANAM Wireless Internet Solutions
http://www.anam.com                     
+353 1 284 7555 (wired)               +353 86 234 6047 (wireless)
Castle Yard, Saint Patrick's Road, Dalkey, County Dublin, Ireland
 



More information about the redland-dev mailing list