Package: sysstat / 11.4.3-2

06-exec.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
From: Robert Luberda <robert@debian.org>
Date: Tue, 23 Mar 2010 22:04:47 +0100
Subject: 06-exec

Merge the following change from Ubuntu:
    - remove call to execvp() as it's not needed and has potential
      security problems.
---
 sar.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/sar.c b/sar.c
index 9c4e7e2..a2f261e 100644
--- a/sar.c
+++ b/sar.c
@@ -1484,7 +1484,6 @@ int main(int argc, char **argv)
 
 		/* Call now the data collector */
 		execv(SADC_PATH, args);
-		execvp(SADC, args);
 		/*
 		 * Note: Don't use execl/execlp since we don't have a fixed number of
 		 * args to give to sadc.