Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37749723
en ru br
ALT Linux repositórios
S:1.3.2-alt1

Group :: Sistema/Bibliotecas
RPM: libfm

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: 0001-SF-1087-Fix-all-allfiles-parse-conditions.patch
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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009