From b0afb8fe0ff1d87165af9df61501197a06240dda Mon Sep 17 00:00:00 2001 From: Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> Date: Sun, 28 Dec 2025 12:13:40 +0100 Subject: Sync with Gnulib stable-202507 code (a8ac9f9ce5) --- gl/stat.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gl/stat.c') diff --git a/gl/stat.c b/gl/stat.c index ecf9f9bb..66637837 100644 --- a/gl/stat.c +++ b/gl/stat.c @@ -1,5 +1,5 @@ /* Work around platform bugs in stat. - Copyright (C) 2009-2024 Free Software Foundation, Inc. + Copyright (C) 2009-2025 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as @@ -118,6 +118,10 @@ rpl_stat (char const *name, struct stat *buf) around length limitations ? */ + /* To ease portability. Like in open.c. */ + if (strcmp (name, "/dev/null") == 0) + name = "NUL"; + /* POSIX specifies: "More than two leading characters shall be treated as a single character." */ -- cgit v1.2.3-74-g34f1