diff options
Diffstat (limited to 'net-misc/netkit-rsh/files/netkit-rsh-0.17-chdir.patch')
-rw-r--r-- | net-misc/netkit-rsh/files/netkit-rsh-0.17-chdir.patch | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/net-misc/netkit-rsh/files/netkit-rsh-0.17-chdir.patch b/net-misc/netkit-rsh/files/netkit-rsh-0.17-chdir.patch deleted file mode 100644 index c9217ba26be5..000000000000 --- a/net-misc/netkit-rsh/files/netkit-rsh-0.17-chdir.patch +++ /dev/null @@ -1,57 +0,0 @@ ---- netkit-rsh-0.17/rshd/rshd.c.orig Sun Jul 23 06:16:24 2000 -+++ netkit-rsh-0.17/rshd/rshd.c Tue Dec 11 17:45:10 2001 -@@ -388,15 +388,6 @@ - remuser, hostname, locuser, cmdbuf); - } - -- if (chdir(pwd->pw_dir) < 0) { -- chdir("/"); -- /* -- * error("No remote directory.\n"); -- * exit(1); -- */ -- } -- -- - if (pwd->pw_uid != 0 && !access(_PATH_NOLOGIN, F_OK)) { - error("Logins currently disabled.\n"); - exit(1); -@@ -456,6 +447,14 @@ - exit(1); - } - environ = envinit; -+ -+ if (chdir(pwd->pw_dir) < 0) { -+ chdir("/"); -+ /* -+ * error("No remote directory.\n"); -+ * exit(1); -+ */ -+ } - - strncat(homedir, pwd->pw_dir, sizeof(homedir)-6); - homedir[sizeof(homedir)-1] = 0; ---- netkit-rsh-0.17/rexecd/rexecd.c.orig Sun Jul 23 06:16:22 2000 -+++ netkit-rsh-0.17/rexecd/rexecd.c Tue Dec 11 18:28:36 2001 -@@ -375,10 +375,6 @@ - /* Log successful attempts. */ - syslog(LOG_INFO, "login from %.128s as %s", remote, user); - -- if (chdir(pwd->pw_dir) < 0) { -- fatal("No remote directory.\n"); -- } -- - write(2, "\0", 1); - if (port) { - /* If we have a port, dup STDERR on that port KRH */ -@@ -408,6 +404,10 @@ - if (setuid(pwd->pw_uid)) { - perror("setuid"); - exit(1); -+ } -+ -+ if (chdir(pwd->pw_dir) < 0) { -+ fatal("No remote directory.\n"); - } - - strcat(path, _PATH_DEFPATH); |