From 3524cf6fa7e7b4161b2e5b7253e50d573524804a Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Thu, 1 Dec 2022 18:39:02 -0500 Subject: [PATCH] Fix minor cupsDir API issue on Windows (not setting S_IFREG flag for files) --- cups/dir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cups/dir.c b/cups/dir.c index f6ac911bac..0446424305 100644 --- a/cups/dir.c +++ b/cups/dir.c @@ -3,6 +3,7 @@ * * This set of APIs abstracts enumeration of directory entries. * + * Copyright © 2022 by OpenPrinting. * Copyright © 2007-2021 by Apple Inc. * Copyright © 1997-2005 by Easy Software Products, all rights reserved. * @@ -188,7 +189,7 @@ cupsDirRead(cups_dir_t *dp) /* I - Directory pointer */ if (entry.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) dp->entry.fileinfo.st_mode = 0755 | S_IFDIR; else - dp->entry.fileinfo.st_mode = 0644; + dp->entry.fileinfo.st_mode = 0644 | S_IFREG; dp->entry.fileinfo.st_atime = _cups_dir_time(entry.ftLastAccessTime); dp->entry.fileinfo.st_ctime = _cups_dir_time(entry.ftCreationTime); -- 2.47.2