From 532d4a24e2013262dfa41fd85c06a9715c99abf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Mon, 24 Oct 2022 21:03:42 +0200 Subject: New upstream version 4.7 --- src/tc-realpath.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/tc-realpath.c') diff --git a/src/tc-realpath.c b/src/tc-realpath.c index 5dd9aa2..c2ef15a 100644 --- a/src/tc-realpath.c +++ b/src/tc-realpath.c @@ -11,6 +11,7 @@ #include #include #include +#include static unsigned int rp_flags; static unsigned int rp_absolute; @@ -42,6 +43,14 @@ static bool rp_get_options(int *argc, const char ***argv) return true; } +static void t_1(void) +{ + hxmc_t *tmp = HXmc_strinit(""); + /* two components, so that HX_readlink gets called twice */ + HX_realpath(&tmp, "/dev/tty", HX_REALPATH_DEFAULT); + HXmc_free(tmp); +} + int main(int argc, const char **argv) { hxmc_t *res; @@ -49,6 +58,7 @@ int main(int argc, const char **argv) if (!rp_get_options(&argc, &argv)) return EXIT_FAILURE; + t_1(); res = NULL; while (--argc > 0) { -- cgit v1.2.3 From bfef0924f58eab930bdd826ac0132786abc32220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 29 Jan 2023 16:17:51 +0100 Subject: New upstream version 4.10 --- src/tc-realpath.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/tc-realpath.c') diff --git a/src/tc-realpath.c b/src/tc-realpath.c index c2ef15a..23609ca 100644 --- a/src/tc-realpath.c +++ b/src/tc-realpath.c @@ -1,10 +1,6 @@ +// SPDX-License-Identifier: MIT /* * Test utility for libHX's realpath - * Copyright Jan Engelhardt - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the WTF Public License version 2 or - * (at your option) any later version. */ #include #include -- cgit v1.2.3