mirror of
git://slackware.nl/current.git
synced 2024-12-26 09:58:59 +01:00
646a5c1cbf
a/pkgtools-15.0-noarch-13.txz: Rebuilt. installpkg: default line length for --terselength is the number of columns. removepkg: added --terse mode. upgradepkg: default line length for --terselength is the number of columns. upgradepkg: accept -option in addition to --option. ap/vim-8.1.0026-x86_64-1.txz: Upgraded. d/bison-3.0.5-x86_64-1.txz: Upgraded. e/emacs-26.1-x86_64-1.txz: Upgraded. kde/kopete-4.14.3-x86_64-8.txz: Rebuilt. Recompiled against libidn-1.35. n/conntrack-tools-1.4.5-x86_64-1.txz: Upgraded. n/libnetfilter_conntrack-1.0.7-x86_64-1.txz: Upgraded. n/libnftnl-1.1.0-x86_64-1.txz: Upgraded. n/links-2.16-x86_64-2.txz: Rebuilt. Rebuilt to enable X driver for -g mode. n/lynx-2.8.9dev.19-x86_64-1.txz: Upgraded. n/nftables-0.8.5-x86_64-1.txz: Upgraded. n/p11-kit-0.23.11-x86_64-1.txz: Upgraded. n/ulogd-2.0.7-x86_64-1.txz: Upgraded. n/whois-5.3.1-x86_64-1.txz: Upgraded. xap/network-manager-applet-1.8.12-x86_64-1.txz: Upgraded. xap/vim-gvim-8.1.0026-x86_64-1.txz: Upgraded.
71 lines
2 KiB
Diff
71 lines
2 KiB
Diff
--- ./rshd/rshd.c.orig 2000-07-22 23:16:24.000000000 -0500
|
|
+++ ./rshd/rshd.c 2018-04-10 02:02:57.995981067 -0500
|
|
@@ -331,7 +331,8 @@
|
|
static void
|
|
doit(struct sockaddr_in *fromp)
|
|
{
|
|
- char cmdbuf[ARG_MAX+1];
|
|
+ char *cmdbuf;
|
|
+ long cmdbuflen;
|
|
const char *theshell, *shellname;
|
|
char locuser[16], remuser[16];
|
|
struct passwd *pwd;
|
|
@@ -340,6 +341,18 @@
|
|
u_short port;
|
|
int pv[2], pid, ifd;
|
|
|
|
+ cmdbuflen = sysconf (_SC_ARG_MAX);
|
|
+ if (!(cmdbuflen > 0)) {
|
|
+ syslog (LOG_ERR, "sysconf (_SC_ARG_MAX) failed");
|
|
+ exit (1);
|
|
+ }
|
|
+
|
|
+ cmdbuf = malloc (++cmdbuflen);
|
|
+ if (cmdbuf == NULL) {
|
|
+ syslog (LOG_ERR, "Could not allocate space for cmdbuf");
|
|
+ exit (1);
|
|
+ }
|
|
+
|
|
signal(SIGINT, SIG_DFL);
|
|
signal(SIGQUIT, SIG_DFL);
|
|
signal(SIGTERM, SIG_DFL);
|
|
--- ./rexecd/rexecd.c.orig 2000-07-22 23:16:22.000000000 -0500
|
|
+++ ./rexecd/rexecd.c 2018-04-10 02:04:52.629979848 -0500
|
|
@@ -223,7 +223,8 @@
|
|
static void
|
|
doit(struct sockaddr_in *fromp)
|
|
{
|
|
- char cmdbuf[ARG_MAX+1];
|
|
+ char *cmdbuf;
|
|
+ long cmdbuflen;
|
|
char user[16], pass[16];
|
|
struct passwd *pwd;
|
|
int s = -1;
|
|
@@ -242,6 +243,18 @@
|
|
#endif
|
|
#endif /* USE_PAM */
|
|
|
|
+ cmdbuflen = sysconf (_SC_ARG_MAX);
|
|
+ if (!(cmdbuflen > 0)) {
|
|
+ syslog (LOG_ERR, "sysconf (_SC_ARG_MAX) failed");
|
|
+ fatal ("sysconf (_SC_ARG_MAX) failed\n");
|
|
+ }
|
|
+
|
|
+ cmdbuf = malloc (++cmdbuflen);
|
|
+ if (cmdbuf == NULL) {
|
|
+ syslog (LOG_ERR, "Could not allocate space for cmdbuf");
|
|
+ fatal ("Could not allocate space for cmdbuf\n");
|
|
+ }
|
|
+
|
|
signal(SIGINT, SIG_DFL);
|
|
signal(SIGQUIT, SIG_DFL);
|
|
signal(SIGTERM, SIG_DFL);
|
|
@@ -291,7 +304,7 @@
|
|
|
|
getstr(user, sizeof(user), "username too long\n");
|
|
getstr(pass, sizeof(pass), "password too long\n");
|
|
- getstr(cmdbuf, sizeof(cmdbuf), "command too long\n");
|
|
+ getstr(cmdbuf, cmdbuflen, "command too long\n");
|
|
#ifdef USE_PAM
|
|
#define PAM_BAIL if (pam_error != PAM_SUCCESS) { \
|
|
pam_end(pamh, pam_error); exit(1); \
|