summaryrefslogtreecommitdiff
path: root/src/io.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2023-07-15 09:47:18 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2023-07-15 09:47:18 +0200
commiteac2a2cc668f491c7d265c5fe6c50f51a60c6256 (patch)
tree87a5f5c9f173123465a6d7ad42a493b070f71348 /src/io.c
parent1842e4ff88f93490966398ae9b763f6dba069799 (diff)
parent163bc6d7fc268bdb1c7cc03699f69d0c5cc0b4cd (diff)
Update upstream source from tag 'upstream/4.14'
Update to upstream version '4.14' with Debian dir 714f602a4a45e9e83780cc1f0ad69803d12fe0e6
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io.c b/src/io.c
index a6c0a68..76c9444 100644
--- a/src/io.c
+++ b/src/io.c
@@ -66,7 +66,7 @@ static int mkdir_gen(const char *d, unsigned int mode)
return 1;
if (errno != EEXIST)
return -errno;
- if (lstat(d, &sb) == 0) {
+ if (stat(d, &sb) == 0) {
#if defined(_WIN32)
if (sb.st_mode & S_IFDIR)
#else
@@ -424,6 +424,7 @@ HX_realpath_symres(struct HX_realpath_state *state, const char *path)
return -ELOOP;
#endif
+ assert(state->link_target != nullptr);
if (*state->link_target == '/') {
*state->dest = '\0';
if (HXmc_setlen(&state->dest, 0) == NULL)