Package: cgmanager / 0.33-2+deb8u2

0004-chown-stop-cgmanager-crash-on-chown-of-bad-file.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From a7fddc8078e7a1fc1d8e33516c90d1a37b8bfc8c Mon Sep 17 00:00:00 2001
From: Serge Hallyn <serge.hallyn@ubuntu.com>
Date: Mon, 15 Dec 2014 18:34:27 -0600
Subject: [PATCH 1/4] chown: stop cgmanager crash on chown of bad file

Wrong error function was being used.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
---
 cgmanager.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: cgmanager-0.33/cgmanager.c
===================================================================
--- cgmanager-0.33.orig/cgmanager.c
+++ cgmanager-0.33/cgmanager.c
@@ -525,8 +525,7 @@ int chmod_main(const char *controller, c
 	}
 
 	if (file && ( strchr(file, '/') || strchr(file, '\\')) ) {
-		nih_dbus_error_raise_printf (DBUS_ERROR_INVALID_ARGS,
-				"invalid file");
+		nih_error("%s: invalid file", __func__);
 		return -1;
 	}