View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000615 | bareos-core | file daemon | public | 2016-02-05 17:43 | 2019-12-18 15:25 |
Reporter | scrasa | Assigned To | |||
Priority | normal | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | Windows | OS Version | Windows 2008 R2 |
Summary | 0000615: symlinks/junctions wrong target path on restore | ||||
Description | When restoring windows junctions/symlinks the target path is wrong with something like : (for symlinkd and symlink with absolute target path [C:\...]) \\?\C:\... (for symlinkd and symlink with relative target path [name...]) \\?\C:\Windows ... (add an extra C:\Windows before path) (for junctions) \??\C:\... And even, when after the restoration came to junction, the filedaemon either crash, or run indefinitely unable to stop from director with "cancel" | ||||
Steps To Reproduce | create files and folder use mklink with "/D" (symlinkd) "/J" (junction) "" (symlink file) use absolute target path "C:\mypath_to_file-folder" or user relative target path "name_file-folder" made with the previous "cd" to subdir | ||||
Additional Information | The problem was tested with linux director 14.2 (debian) and filedaemon under windows with version 16.1 (from nightly). Same problem with linux director 16.1 (nightly) and filedaemon 16.1 under windows (filedaemon run on Windows Server 2008 R2) | ||||
Tags | No tags attached. | ||||
Fix committed to bareos bareos-15.2 branch with changesetid 6174. | |
Fix committed to bareos bareos-14.2 branch with changesetid 6419. | |
bareos: bareos-15.2 97161d30 2016-03-22 13:06 Ported: N/A Details Diff |
Fix problems with wide char symlinks and junctions There were some problems since the last change to the junctions and symlink code on windows to support wide characters. This fixes these problems so that we now can create correct wide character symlinks and junctions. This commit also adds a unit test for creating junctions and changes what is needed for that. Fixes 0000615: symlinks/junctions wrong target path on restore |
Affected Issues 0000615 |
|
mod - platforms/win32/winbareos.nsi | Diff File | ||
mod - src/lib/unittests/Makefile.in | Diff File | ||
add - src/lib/unittests/junction_test.c | Diff File | ||
mod - src/lib/unittests/protos.h | Diff File | ||
mod - src/lib/unittests/test_lib.c | Diff File | ||
mod - src/win32/compat/compat.c | Diff File | ||
mod - src/win32/compat/include/compat.h | Diff File | ||
mod - src/win32/lib/unittests/Makefile | Diff File | ||
bareos: bareos-14.2 15659e4a 2016-03-22 13:06 Committer: mvwieringen Ported: N/A Details Diff |
Fix problems with wide char symlinks and junctions There were some problems since the last change to the junctions and symlink code on windows to support wide characters. This fixes these problems so that we now can create correct wide character symlinks and junctions. Fixes 0000615: symlinks/junctions wrong target path on restore |
Affected Issues 0000615 |
|
add - src/lib/unittests/junction_test.c | Diff File | ||
mod - src/win32/compat/compat.c | Diff File | ||
mod - src/win32/compat/include/compat.h | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2016-02-05 17:43 | scrasa | New Issue | |
2016-02-25 17:25 | maik | Status | new => acknowledged |
2016-03-23 22:23 | pstorz | Changeset attached | => bareos bareos-15.2 97161d30 |
2016-03-23 22:23 | pstorz | Note Added: 0002220 | |
2016-03-23 22:23 | pstorz | Status | acknowledged => resolved |
2016-03-23 22:23 | pstorz | Resolution | open => fixed |
2016-07-05 11:44 | joergs | Relationship added | child of 0000584 |
2016-07-08 14:34 | mvwieringen | Changeset attached | => bareos bareos-14.2 15659e4a |
2016-07-08 14:34 | mvwieringen | Note Added: 0002311 | |
2019-12-18 15:25 | arogge | Status | resolved => closed |