1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Prevent dologout goes to mainloop

Use system default CFLAGS
This commit is contained in:
Andrey A. Chernov 1997-01-02 19:12:00 +00:00
parent d5faabab8c
commit 91c52082e7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=5169
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,18 @@
*** ftpd.c.bak Wed Jan 1 22:10:05 1997
--- src/ftpd.c Wed Jan 1 22:10:14 1997
***************
*** 2503,2508 ****
--- 2503,2514 ----
void
dologout(int status)
{
+ /*
+ * Prevent reception of SIGURG from resulting in a resumption
+ * back to the main program loop.
+ */
+ transflag = 0;
+
if (logged_in) {
(void) seteuid((uid_t) 0);
logwtmp(ttyline, "", "");

View File

@ -0,0 +1,18 @@
*** ftpd.c.bak Wed Jan 1 22:10:05 1997
--- src/ftpd.c Wed Jan 1 22:10:14 1997
***************
*** 2503,2508 ****
--- 2503,2514 ----
void
dologout(int status)
{
+ /*
+ * Prevent reception of SIGURG from resulting in a resumption
+ * back to the main program loop.
+ */
+ transflag = 0;
+
if (logged_in) {
(void) seteuid((uid_t) 0);
logwtmp(ttyline, "", "");