]> git.pld-linux.org Git - packages/FreeWnn.git/blobdiff - FreeWnn-reuid.patch
- updated to 1.1.1-a23
[packages/FreeWnn.git] / FreeWnn-reuid.patch
index c8f5d86adf4d36ea091e47f536afb38b6adf397d..6567e34518369a4060cc07f12c4d6d93b3c70799 100644 (file)
    get_options (argc, argv);
    print_version();
    log_debug("invoked as %s.", argv[0]);
---- FreeWnn-1.1.1-a017/Wnn/uum/jhlp.c.orig     Mon Jan 22 18:28:06 2001
-+++ FreeWnn-1.1.1-a017/Wnn/uum/jhlp.c  Mon Jan 22 18:32:53 2001
-@@ -1297,8 +1297,8 @@
-       dup2 (ttypfd, 1);
-       dup2 (ttypfd, 2);
- #else /* linux */
+--- FreeWnn-1.1.1-a023/Wnn/uum/jhlp.c.orig     2016-09-27 18:18:54.713645559 +0200
++++ FreeWnn-1.1.1-a023/Wnn/uum/jhlp.c  2016-09-27 18:37:20.170299605 +0200
+@@ -1661,8 +1661,8 @@
+       ioctl (ttyfd, TIOCSWINSZ, &win);
+ #endif
+ #ifdef linux
 -      setgid (getgid ());
 -      setuid (getuid ());
-+      setregid (getegid(), getegid());
-+      setreuid (geteuid(), geteuid());
-       close (0);
-       close (1);
-       close (2);
++      setregid (getegid (), getegid ());
++      setreuid (geteuid (), geteuid ());
+ #endif
+       execvp (cmdnm, argv);
+       uum_err ("exec fault.");
This page took 0.072661 seconds and 4 git commands to generate.