Skip to content

Commit bcc8f6d

Browse files
authored
Merge pull request #1665 from fastfetch-cli/dev
Release v2.40.1
2 parents f833dda + 90ca6ee commit bcc8f6d

File tree

7 files changed

+19
-22
lines changed

7 files changed

+19
-22
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 2.40.1
2+
3+
Bugfixes:
4+
* Fix compiling error on old intel platform (TPM, macOS)
5+
* Fix `--file-raw -` no longer working (Logo, #1659)
6+
* Regression of v2.40.0
7+
18
# 2.40.0
29

310
Changes:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.40.0
4+
VERSION 2.40.1
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
fastfetch (2.40.0) jammy; urgency=medium
2+
3+
* Update to 2.40.0
4+
5+
-- Carter Li <[email protected]> Thu, 03 Apr 2025 08:46:54 +0800
6+
17
fastfetch (2.39.1) jammy; urgency=medium
28

39
* Update to 2.39.1

debian/files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fastfetch_2.39.1_source.buildinfo universe/utils optional
1+
fastfetch_2.40.0_source.buildinfo universe/utils optional

src/common/io/io.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ static inline bool ffPathExists(const char* path, FFPathType pathType)
119119
}
120120
else
121121
{
122-
#if (__APPLE__ || __HAIKU__) // #1395
123122
struct stat fileStat;
124123
if(stat(path, &fileStat) != 0)
125124
return false;
@@ -131,24 +130,6 @@ static inline bool ffPathExists(const char* path, FFPathType pathType)
131130

132131
if(pathType & FF_PATHTYPE_DIRECTORY && mode == S_IFDIR)
133132
return true;
134-
#else
135-
size_t len = strlen(path);
136-
assert(len < PATH_MAX);
137-
if (len == 0) return false;
138-
139-
int ret;
140-
if (path[len - 1] != '/')
141-
{
142-
char buf[PATH_MAX + 1];
143-
memcpy(buf, path, len);
144-
buf[len] = '/';
145-
buf[len + 1] = 0;
146-
ret = access(buf, F_OK);
147-
}
148-
else
149-
ret = access(path, F_OK);
150-
return pathType == FF_PATHTYPE_DIRECTORY ? ret == 0 : ret == -1 && errno == ENOTDIR;
151-
#endif
152133
}
153134

154135
#endif

src/detection/tpm/tpm_apple.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const char* ffDetectTPM(FFTPMResult* result)
1616
#else
1717

1818
FF_IOOBJECT_AUTO_RELEASE io_service_t t2Service = IOServiceGetMatchingService(
19-
kIOMainPortDefault,
19+
MACH_PORT_NULL,
2020
IOServiceMatching("AppleT2"));
2121

2222
if (t2Service) {

src/logo/logo.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ static void updateLogoPath(void)
473473
if(ffPathExists(options->source.chars, FF_PATHTYPE_FILE))
474474
return;
475475

476+
if (ffStrbufEqualS(&options->source, "-")) // stdin
477+
return;
478+
476479
FF_STRBUF_AUTO_DESTROY fullPath = ffStrbufCreate();
477480
if (ffPathExpandEnv(options->source.chars, &fullPath) && ffPathExists(fullPath.chars, FF_PATHTYPE_FILE))
478481
{

0 commit comments

Comments
 (0)