View Issue Details

IDProjectCategoryView StatusLast Update
0000274bareos-corefile daemonpublic2015-03-25 19:19
Reportermaik Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformWindows 7OSWindowsOS Version7
Product Version14.1.0 
Fixed in Version14.2.0 
Summary0000274: bareos-fd on windows 7 struggles with unix-style pathes
DescriptionWhen running a restore job and trying to restore files to a path in unix-style, restore fails with an error:

 04-Feb 12:47 10.20.240.67-fd JobId 18361: Error: findlib/mkpath.c:130 Cannot create directory /tmp: ERR=File exists

It works with path 'C:\' and it also works on Windows 2012 with unix-style pathes

(with released versions 12.4 / 13.2 no problem at all)
Steps To ReproduceDefault restore job to a windows 7 machine (path automatically predefined /tmp/bareos-restores)
TagsNo tags attached.

Activities

mvwieringen

mvwieringen

2014-02-18 20:54

developer   ~0000818

Fix committed to bareos master branch with changesetid 1495.
mvwieringen

mvwieringen

2015-03-25 16:51

developer   ~0001477

Fix committed to bareos2015 bareos-14.2 branch with changesetid 4911.
joergs

joergs

2015-03-25 19:19

developer   ~0001624

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

Related Changesets

bareos: master 4adffb6e

2014-02-18 16:48

mvwieringen

Ported: N/A

Details Diff
Use proper filename for windows paths.

For ASCII paths you need to use unix_name_to_win32() and for UTF8 paths
make_win32_path_UTF8_2_wchar()

We were always doing first a unix_name_to_win32() and that output as
input for UTF8 make_win32_path_UTF8_2_wchar() that ain't going to work.

Fixes 0000274: bareos-fd on windows 7 struggles with unix-style pathes
Affected Issues
0000274
mod - src/win32/compat/compat.c Diff File
mod - src/win32/compat/include/compat.h Diff File

bareos2015: bareos-14.2 2fc981ba

2014-02-18 17:48

mvwieringen

Ported: N/A

Details Diff
Use proper filename for windows paths.

For ASCII paths you need to use unix_name_to_win32() and for UTF8 paths
make_win32_path_UTF8_2_wchar()

We were always doing first a unix_name_to_win32() and that output as
input for UTF8 make_win32_path_UTF8_2_wchar() that ain't going to work.

Fixes 0000274: bareos-fd on windows 7 struggles with unix-style pathes
Affected Issues
0000274
mod - src/win32/compat/compat.c Diff File
mod - src/win32/compat/include/compat.h Diff File

Issue History

Date Modified Username Field Change
2014-02-04 13:42 maik New Issue
2014-02-11 14:20 mvwieringen Assigned To => pstorz
2014-02-11 14:20 mvwieringen Status new => assigned
2014-02-18 20:54 mvwieringen Changeset attached => bareos master 4adffb6e
2014-02-18 20:54 mvwieringen Note Added: 0000818
2014-02-18 20:54 mvwieringen Assigned To pstorz => mvwieringen
2014-02-18 20:54 mvwieringen Status assigned => resolved
2014-02-18 20:54 mvwieringen Resolution open => fixed
2014-05-16 17:20 mvwieringen adm Assigned To mvwieringen =>
2014-05-16 17:20 mvwieringen adm Status resolved => closed
2014-05-16 17:20 mvwieringen adm Fixed in Version => 14.2.0
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-14.2 2fc981ba
2015-03-25 16:51 mvwieringen Note Added: 0001477
2015-03-25 16:51 mvwieringen Status closed => resolved
2015-03-25 19:19 joergs Note Added: 0001624
2015-03-25 19:19 joergs Status resolved => closed