1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

gpgtar,w32: Support file names longer than MAX_PATH.

* tools/gpgtar.c: Replace assert by log_assert.
* tools/gpgtar-extract.c: Ditto.
(extract_regular): Create files with sysopen flag.
* tools/gpgtar-create.c (scan_directory): Use gpgrt_fname_to_wchar.
--

Note that for this change libgpg-error 1.45 is required for Windows.
This commit is contained in:
Werner Koch 2022-03-04 14:54:17 +01:00
parent 6afedbcd47
commit 70b738f93f
No known key found for this signature in database
GPG key ID: E3FDFF218E45B72B
3 changed files with 10 additions and 13 deletions

View file

@ -34,7 +34,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#define INCLUDED_BY_MAIN_MODULE 1
#include "../common/util.h"
@ -261,7 +260,7 @@ shell_parse_stringlist (const char *str, strlist_t *r_list)
break;
case doublequote:
assert (s > str || !"cannot be quoted at first char");
log_assert (s > str || !"cannot be quoted at first char");
if (*s == doublequote && *(s - 1) != '\\')
quoted = unquoted;
else
@ -269,7 +268,7 @@ shell_parse_stringlist (const char *str, strlist_t *r_list)
break;
default:
assert (! "reached");
log_assert (! "reached");
}
}