mirror of
https://github.com/mac-a-r0ni/crux-xfce4.git
synced 2025-02-02 02:42:19 +01:00
remove patch (its broken)
This commit is contained in:
parent
b3506ac3ef
commit
f6bb908c78
@ -1,40 +0,0 @@
|
||||
From 072d27fa368246a9c2bfbd8ba9f9c662ecda0b88 Mon Sep 17 00:00:00 2001
|
||||
Message-Id: <072d27fa368246a9c2bfbd8ba9f9c662ecda0b88.1555511658.git.jan.steffens@gmail.com>
|
||||
From: "Jan Alexander Steffens (heftig)" <jan.steffens@gmail.com>
|
||||
Date: Wed, 17 Apr 2019 16:29:57 +0200
|
||||
Subject: [PATCH] trivial: Fix error checking for sd_pid_get_session and
|
||||
sd_session_get_seat
|
||||
|
||||
These functions can return a positive integer on success. Fix the
|
||||
conditions to only regard negative return values as errors.
|
||||
|
||||
Fixes commit 6ffe2f6aae4bdc8331cab1fd9379ed8aef759749.
|
||||
Fixes https://bugs.archlinux.org/task/37014
|
||||
---
|
||||
src/cd-main.c | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/cd-main.c b/src/cd-main.c
|
||||
index 514ae5c..ffcecb8 100644
|
||||
--- a/src/cd-main.c
|
||||
+++ b/src/cd-main.c
|
||||
@@ -491,15 +491,15 @@ cd_main_get_seat_for_process (guint pid)
|
||||
|
||||
/* get session the process belongs to */
|
||||
rc = sd_pid_get_session (pid, &sd_session);
|
||||
- if (rc != 0) {
|
||||
+ if (rc < 0) {
|
||||
g_warning ("failed to get session [pid %u]: %s",
|
||||
pid, strerror (-rc));
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* get the seat the session is on */
|
||||
rc = sd_session_get_seat (sd_session, &sd_seat);
|
||||
- if (rc != 0) {
|
||||
+ if (rc < 0) {
|
||||
g_warning ("failed to get seat for session %s [pid %u]: %s",
|
||||
sd_session, pid, strerror (-rc));
|
||||
goto out;
|
||||
--
|
||||
2.21.0
|
@ -7,11 +7,10 @@
|
||||
name=colord
|
||||
version=1.4.6
|
||||
release=1
|
||||
source=(https://github.com/hughsie/colord/archive/$version/$name-$version.tar.gz 0001-trivial-Fix-error-checking-for-sd_pid_get_session-an.patch)
|
||||
source=(https://github.com/hughsie/colord/archive/$version/$name-$version.tar.gz)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
patch -Np1 -i $SRC/0001-trivial-Fix-error-checking-for-sd_pid_get_session-an.patch
|
||||
meson setup . build \
|
||||
--prefix=/usr \
|
||||
--libexecdir=/usr/lib/$name \
|
||||
|
Loading…
x
Reference in New Issue
Block a user