From 59e7b371366ba3a206061c549060911cbdaca9ad Mon Sep 17 00:00:00 2001 From: John Safranek Date: Wed, 6 Dec 2023 10:41:18 -0800 Subject: [PATCH] Zephyr File Permissions When populating the file permission status for a file vs directory in the zephyr porting, use the new constants for the file permissions being a regular file or directory. Not (the wrong) bare numbers. --- src/wolfsftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wolfsftp.c b/src/wolfsftp.c index 530b340c6..3bc55c09e 100644 --- a/src/wolfsftp.c +++ b/src/wolfsftp.c @@ -4729,9 +4729,9 @@ static int PopulateAttributes(WS_SFTP_FILEATRB* atr, WSTAT_T* stats) atr->per = 0755; /* Mimic S_IFMT */ if (stats->type == FS_DIR_ENTRY_FILE) - atr->per |= 0040000; + atr->per |= FILEATRB_PER_FILE; else if (stats->type == FS_DIR_ENTRY_DIR) - atr->per |= 0100000; + atr->per |= FILEATRB_PER_DIR; else return WS_BAD_FILE_E;