]>
Commit | Line | Data |
---|---|---|
1 | --- FreeWnn-1.1.1-a021/Wnn/jserver/de.c.orig 2012-11-16 20:41:53.701176783 +0100 | |
2 | +++ FreeWnn-1.1.1-a021/Wnn/jserver/de.c 2012-11-16 20:45:47.327838583 +0100 | |
3 | @@ -240,7 +240,8 @@ | |
4 | /* option default */ | |
5 | option_flag = (OPT_FORK & ~OPT_VERBOSE); | |
6 | ||
7 | - setuid (geteuid ()); | |
8 | + setregid(getegid(), getegid()); | |
9 | + setreuid(geteuid(), geteuid()); | |
10 | get_options (argc, argv); | |
11 | print_version(); | |
12 | log_debug("invoked as %s.", argv[0]); | |
13 | --- FreeWnn-1.1.1-a023/Wnn/uum/jhlp.c.orig 2016-09-27 18:18:54.713645559 +0200 | |
14 | +++ FreeWnn-1.1.1-a023/Wnn/uum/jhlp.c 2016-09-27 18:37:20.170299605 +0200 | |
15 | @@ -1661,8 +1661,8 @@ | |
16 | ioctl (ttyfd, TIOCSWINSZ, &win); | |
17 | #endif | |
18 | #ifdef linux | |
19 | - setgid (getgid ()); | |
20 | - setuid (getuid ()); | |
21 | + setregid (getegid (), getegid ()); | |
22 | + setreuid (geteuid (), geteuid ()); | |
23 | #endif | |
24 | execvp (cmdnm, argv); | |
25 | uum_err ("exec fault."); |