Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# 2.40.1

Bugfixes:
* Fix compiling error on old intel platform (TPM, macOS)
* Fix `--file-raw -` no longer working (Logo, #1659)
* Regression of v2.40.0

# 2.40.0

Changes:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url

project(fastfetch
VERSION 2.40.0
VERSION 2.40.1
LANGUAGES C
DESCRIPTION "Fast neofetch-like system information tool"
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
fastfetch (2.40.0) jammy; urgency=medium

* Update to 2.40.0

-- Carter Li <[email protected]> Thu, 03 Apr 2025 08:46:54 +0800

fastfetch (2.39.1) jammy; urgency=medium

* Update to 2.39.1
Expand Down
2 changes: 1 addition & 1 deletion debian/files
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fastfetch_2.39.1_source.buildinfo universe/utils optional
fastfetch_2.40.0_source.buildinfo universe/utils optional
19 changes: 0 additions & 19 deletions src/common/io/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ static inline bool ffPathExists(const char* path, FFPathType pathType)
}
else
{
#if (__APPLE__ || __HAIKU__) // #1395
struct stat fileStat;
if(stat(path, &fileStat) != 0)
return false;
Expand All @@ -131,24 +130,6 @@ static inline bool ffPathExists(const char* path, FFPathType pathType)

if(pathType & FF_PATHTYPE_DIRECTORY && mode == S_IFDIR)
return true;
#else
size_t len = strlen(path);
assert(len < PATH_MAX);
if (len == 0) return false;

int ret;
if (path[len - 1] != '/')
{
char buf[PATH_MAX + 1];
memcpy(buf, path, len);
buf[len] = '/';
buf[len + 1] = 0;
ret = access(buf, F_OK);
}
else
ret = access(path, F_OK);
return pathType == FF_PATHTYPE_DIRECTORY ? ret == 0 : ret == -1 && errno == ENOTDIR;
#endif
}

#endif
Expand Down
2 changes: 1 addition & 1 deletion src/detection/tpm/tpm_apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const char* ffDetectTPM(FFTPMResult* result)
#else

FF_IOOBJECT_AUTO_RELEASE io_service_t t2Service = IOServiceGetMatchingService(
kIOMainPortDefault,
MACH_PORT_NULL,
IOServiceMatching("AppleT2"));

if (t2Service) {
Expand Down
3 changes: 3 additions & 0 deletions src/logo/logo.c
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,9 @@ static void updateLogoPath(void)
if(ffPathExists(options->source.chars, FF_PATHTYPE_FILE))
return;

if (ffStrbufEqualS(&options->source, "-")) // stdin
return;

FF_STRBUF_AUTO_DESTROY fullPath = ffStrbufCreate();
if (ffPathExpandEnv(options->source.chars, &fullPath) && ffPathExists(fullPath.chars, FF_PATHTYPE_FILE))
{
Expand Down
Loading