Opened 14 years ago

Closed 14 years ago

#3434 closed defect (fixed)

SQL REPACK in Shapefile uses system specific directory seperator.

Reported by: chaitanya Owned by: chaitanya
Priority: high Milestone: 1.7.2
Component: OGR_SF Version: unspecified
Severity: normal Keywords: shapefile
Cc: warmerdam, Mateusz Łoskot

Description

Andrea Aime found the following problem:

The one problem I'm seeing at the moment is an issue trying to repack
shapefiles, when I run the sql command "REPACK <layername>" GDAL prints the following error message on the console:

ERROR 4: Failed to create temp file /tmp\test-shp7354670084102227244_packed.dbf.

ogrshapelayer.cpp uses oTempFile += '
'; to add a directory separator when it ought to use CPLFormFilename().

Change History (2)

comment:1 by Even Rouault, 14 years ago

Cc: Mateusz Łoskot added

Chaitanya,

Mateusz fixed the issue in trunk in r18897. It would be desirable that you backport it in 1.7 branch.

comment:2 by chaitanya, 14 years ago

Resolution: fixed
Status: newclosed

Backported Mateusz's fix r18897 to 1.7 (r18899) and 1.6 (r18900) branches.

Note: See TracTickets for help on using tickets.