Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4a48d5d6314f24f82596d0e270308ddbf9773255

commit 4a48d5d6314f24f82596d0e270308ddbf9773255
Author: James Buren <[email protected]>
Date:   Thu Nov 21 19:21:26 2013 -0600

fbterm-1.7.0-4-x86_64
* amend patch to restore EUID to normal if exec returns

diff --git a/source/apps-extra/fbterm/login-seteuid.patch 
b/source/apps-extra/fbterm/login-seteuid.patch
index 0afa126..e2bf15b 100644
--- a/source/apps-extra/fbterm/login-seteuid.patch
+++ b/source/apps-extra/fbterm/login-seteuid.patch
@@ -1,6 +1,6 @@
diff -ur a/src/lib/shell.cpp b/src/lib/shell.cpp
---- a/src/lib/shell.cpp        2013-11-15 16:51:20.587288344 -0600
-+++ b/src/lib/shell.cpp        2013-11-21 19:08:05.300708925 -0600
+--- a/src/lib/shell.cpp        2010-10-05 23:23:08.000000000 -0500
++++ b/src/lib/shell.cpp        2013-11-21 19:18:54.221684798 -0600
@@ -32,6 +32,9 @@
#include <sys/wait.h>
#include "shell.h"
@@ -27,3 +27,12 @@ diff -ur a/src/lib/shell.cpp b/src/lib/shell.cpp
if (command) {
execvp(command[0], command);
} else {
+@@ -93,6 +105,8 @@
+                       execlp("/bin/sh", "/bin/sh", NULL);
+               }
+
++              seteuid(getuid());
++
+               exit(1);
+               break;
+
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to