Deleted Added
full compact
29c29
< __FBSDID("$FreeBSD: stable/11/contrib/libarchive/tar/test/test_option_C_mtree.c 337351 2018-08-05 14:35:30Z mm $");
---
> __FBSDID("$FreeBSD: stable/11/contrib/libarchive/tar/test/test_option_C_mtree.c 348607 2019-06-04 10:35:54Z mm $");
38a39,41
> #if defined(_WIN32) && !defined(CYGWIN)
> char *p;
> #endif
51c54,60
< r = systemf("%s -cf %s -C bar \"@%s\" >step1.out 2>step1.err", testprog, filename, absolute_path);
---
> #if defined(_WIN32) && !defined(CYGWIN)
> p = absolute_path;
> while(*p != '\0') {
> if (*p == '/')
> *p = '\\';
> p++;
> }
52a62
> r = systemf("%s -cf %s -C bar @%s >step1.out 2>step1.err", testprog, filename, absolute_path);
53a64,68
> #else
> r = systemf("%s -cf %s -C bar \"@%s\" >step1.out 2>step1.err", testprog, filename, absolute_path);
> failure("Error invoking %s -cf %s -C bar \"@%s\"", testprog, filename, absolute_path);
> #endif
>
70a86
> free(absolute_path);