From 48b3355c7a887530a9bd17a1ad571e402102dd95 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 9 Feb 2024 15:24:38 +0100 Subject: Remove check for OS specific stuff from is_filename_sane Signed-off-by: David Oberhollenzer --- include/util/util.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/util/util.h') diff --git a/include/util/util.h b/include/util/util.h index cd32887..db6a712 100644 --- a/include/util/util.h +++ b/include/util/util.h @@ -55,12 +55,8 @@ SQFS_INTERNAL int canonicalize_name(char *filename); /* Returns true if a given filename is sane, false if it is not (e.g. contains slashes or it is equal to '.' or '..'). - - If check_os_specific is true, this also checks if the filename contains - a character, or is equal to a name, that is black listed on the current OS. - E.g. on Windows, a file named "COM0" or "AUX" is a no-no. */ -SQFS_INTERNAL bool is_filename_sane(const char *name, bool check_os_specific); +SQFS_INTERNAL bool is_filename_sane(const char *name); /* If the environment variable SOURCE_DATE_EPOCH is set to a parsable number -- cgit v1.2.3