From 27dae84ed92f1ef0300263091972338d12e78348 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 18 Oct 2025 19:06:52 +0200 Subject: New upstream version 1.4.1 --- tests/test-lstat.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests/test-lstat.h') diff --git a/tests/test-lstat.h b/tests/test-lstat.h index 31476132..899cb267 100644 --- a/tests/test-lstat.h +++ b/tests/test-lstat.h @@ -1,5 +1,5 @@ /* Test of lstat() function. - Copyright (C) 2008-2024 Free Software Foundation, Inc. + Copyright (C) 2008-2025 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -64,6 +64,14 @@ test_lstat_func (int (*func) (char const *, struct stat *), bool print) ASSERT (func (BASE "file/", &st1) == -1); ASSERT (errno == ENOTDIR); + /* /dev/null is a character device. + Except on Solaris, where it is a symlink. */ + ASSERT (func ("/dev/null", &st1) == 0); + ASSERT (!S_ISREG (st1.st_mode)); +#if !defined __sun + ASSERT (S_ISCHR (st1.st_mode)); +#endif + /* Now for some symlink tests, where supported. We set up: link1 -> directory link2 -> file -- cgit v1.2.3 From 5f59a34ab747dde8ede7357f3431bf06bd6002fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 8 Mar 2026 17:28:33 +0100 Subject: New upstream version 1.4.2 --- tests/test-lstat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test-lstat.h') diff --git a/tests/test-lstat.h b/tests/test-lstat.h index 899cb267..5bf14223 100644 --- a/tests/test-lstat.h +++ b/tests/test-lstat.h @@ -1,5 +1,5 @@ /* Test of lstat() function. - Copyright (C) 2008-2025 Free Software Foundation, Inc. + Copyright (C) 2008-2026 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by -- cgit v1.2.3