[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] git: Stubs



* In compat/tyndur.h müssen keine Stubs mehr für setuid und setgid sein

Signed-off-by: Arne Hasselbring <arne.hasselbring@xxxxxxxxxxxxxx>
---
 lbuilds/git/1.6.4/patches/compile.patch |   21 +--------------------
 1 files changed, 1 insertions(+), 20 deletions(-)

diff --git a/lbuilds/git/1.6.4/patches/compile.patch b/lbuilds/git/1.6.4/patches/compile.patch
index 233eb58..deebb17 100644
--- a/lbuilds/git/1.6.4/patches/compile.patch
+++ b/lbuilds/git/1.6.4/patches/compile.patch
@@ -83,7 +83,7 @@ Index: src/git-1.6.4/compat/tyndur.h
 ===================================================================
 --- /dev/null
 +++ src/git-1.6.4/compat/tyndur.h
-@@ -0,0 +1,157 @@
+@@ -0,0 +1,147 @@
 +#ifndef COMPAT_TYNDUR_H
 +#define COMPAT_TYNDUR_H
 +
@@ -176,16 +176,6 @@ Index: src/git-1.6.4/compat/tyndur.h
 +    return getpid();
 +}
 +
-+static int setuid(uid_t uid)
-+{
-+    return 0;
-+}
-+
-+static int setgid(gid_t gid)
-+{
-+    return 0;
-+}
-+
 +static int initgroups(const char *user, gid_t group)
 +{
 +    return 0;
@@ -371,15 +361,6 @@ Index: src/git-1.6.4/run-command.c
  	fflush(NULL);
  	cmd->pid = fork();
  	if (!cmd->pid) {
-Index: src/git-1.6.4/write_or_die.c
-===================================================================
---- src.orig/git-1.6.4/write_or_die.c
-+++ src/git-1.6.4/write_or_die.c
-@@ -1,3 +1,4 @@
-+#include "compat/tyndur.h"
- #include "cache.h"
- 
- /*
 Index: src/git-1.6.4/daemon.c
 ===================================================================
 --- src.orig/git-1.6.4/daemon.c
-- 
1.7.1