summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-shells/localshell/files')
-rw-r--r--app-shells/localshell/files/localshell-1.2+gcc-4.3.patch45
-rw-r--r--app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch12
2 files changed, 57 insertions, 0 deletions
diff --git a/app-shells/localshell/files/localshell-1.2+gcc-4.3.patch b/app-shells/localshell/files/localshell-1.2+gcc-4.3.patch
new file mode 100644
index 000000000000..9bd2aeecd70c
--- /dev/null
+++ b/app-shells/localshell/files/localshell-1.2+gcc-4.3.patch
@@ -0,0 +1,45 @@
+diff -aur localshell-1.2.old/src/common.cxx localshell-1.2/src/common.cxx
+--- localshell-1.2.old/src/common.cxx 2008-12-12 20:03:48.000000000 +0100
++++ localshell-1.2/src/common.cxx 2008-12-12 20:15:31.000000000 +0100
+@@ -5,6 +5,7 @@
+ #include "structures.hh"
+ #include "common.hh"
+ #include <fstream>
++#include <cstring>
+ using namespace std;
+
+ bool match_user(uid_t uid, gid_t gid) {
+diff -aur localshell-1.2.old/src/config.cxx localshell-1.2/src/config.cxx
+--- localshell-1.2.old/src/config.cxx 2008-12-12 20:03:48.000000000 +0100
++++ localshell-1.2/src/config.cxx 2008-12-12 20:15:07.000000000 +0100
+@@ -10,6 +10,8 @@
+ #include <fstream>
+ #include <map>
+ #include <vector>
++#include <cstring>
++#include <cstdlib>
+ using namespace std;
+
+ int load_config( const char *cfg_filename, configuration &conf) {
+diff -aur localshell-1.2.old/src/config.hh localshell-1.2/src/config.hh
+--- localshell-1.2.old/src/config.hh 2008-12-12 20:03:48.000000000 +0100
++++ localshell-1.2/src/config.hh 2008-12-12 20:14:00.000000000 +0100
+@@ -2,6 +2,7 @@
+ #ifndef _CONFIG_HH_
+ #define _CONFIG_HH_
+ #include "structures.hh"
++#include <fstream>
+
+ int load_config( const char *cfg_filename, configuration &conf);
+ int parse_config(fstream &fs, configuration &conf);
+diff -aur localshell-1.2.old/src/localshell.cxx localshell-1.2/src/localshell.cxx
+--- localshell-1.2.old/src/localshell.cxx 2008-12-12 20:03:48.000000000 +0100
++++ localshell-1.2/src/localshell.cxx 2008-12-12 20:04:14.000000000 +0100
+@@ -10,6 +10,7 @@
+
+ #include <map>
+ #include <vector>
++#include <cstring>
+ using namespace std;
+
+ int main(int argc, char** argv) {
diff --git a/app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch b/app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch
new file mode 100644
index 000000000000..7bdd8f9a8d1f
--- /dev/null
+++ b/app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch
@@ -0,0 +1,12 @@
+diff -ur localshell-1.3.1.orig/src/config.cxx localshell-1.3.1/src/config.cxx
+--- localshell-1.3.1.orig/src/config.cxx 2009-01-09 03:40:11.000000000 +0200
++++ localshell-1.3.1/src/config.cxx 2009-08-09 18:15:17.000000000 +0300
+@@ -121,7 +121,7 @@
+ // PRIORITY,SHELL,ALLOWED
+ long priority = atol(argvalue);
+
+- char* shell = strstr(argvalue,",");
++ char* shell = const_cast<char*> (strstr(argvalue,","));
+ if(NULL == shell || '\0' == shell[1] ) {
+ fprintf(stderr,"%s: badly formatted entry (shell):%s\n",PACKAGE,argvalue);
+ return EINVAL;