diff options
Diffstat (limited to 'app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch')
-rw-r--r-- | app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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; |