Group :: System/Libraries
RPM: libfm
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: 0001-SF-1087-Fix-all-allfiles-parse-conditions.patch
Download
Download
From fc4f36e9b3782832a6d7c0f75e643f7c87534857 Mon Sep 17 00:00:00 2001
From: Leonardo Citrolo <leoc@users.sourceforge.net>
Date: Mon, 30 Mar 2020 07:30:41 +0000
Subject: [PATCH 1/2] [SF#1087] Fix all/allfiles parse conditions.
---
src/base/fm-action.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/base/fm-action.c b/src/base/fm-action.c
index 59c71e65..f368da0e 100644
--- a/src/base/fm-action.c
+++ b/src/base/fm-action.c
@@ -1872,7 +1872,7 @@ static gboolean _matches_cond(FmFileInfoList *files, FmFileInfo *location,
{
if (strncmp(&tst[1], "all/", 4) == 0)
{
- if (strcmp(&tst[5], "allfiles"))
+ if (strcmp(&tst[5], "allfiles") == 0)
{
for (l = flist; match && l; l = l->next)
if (S_ISREG(fm_file_info_get_mode(l->data)))
@@ -1902,7 +1902,7 @@ static gboolean _matches_cond(FmFileInfoList *files, FmFileInfo *location,
{
if (strncmp(tst, "all/", 4) == 0)
{
- if (strcmp(&tst[4], "allfiles"))
+ if (strcmp(&tst[4], "allfiles") == 0)
{
for (l = flist; l; l = l->next)
if (!S_ISREG(fm_file_info_get_mode(l->data)))
--
2.25.4