commit procps for openSUSE:Factory
Hello community, here is the log from the commit of package procps for openSUSE:Factory checked in at 2017-08-12 19:40:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/procps (Old) and /work/SRC/openSUSE:Factory/.procps.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "procps" Sat Aug 12 19:40:17 2017 rev:106 rq:514794 version:3.3.12 Changes: -------- --- /work/SRC/openSUSE:Factory/procps/procps.changes 2017-07-12 19:30:14.169210096 +0200 +++ /work/SRC/openSUSE:Factory/.procps.new/procps.changes 2017-08-12 19:40:22.505782385 +0200 @@ -1,0 +2,5 @@ +Wed Aug 2 16:49:08 UTC 2017 - schwab@linux-m68k.org + +- procps-ng-3.3.12-sysctl-iobuf.patch: fix crash + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ procps-ng-3.3.12-sysctl-iobuf.patch ++++++ --- /var/tmp/diff_new_pack.L1U8Sg/_old 2017-08-12 19:40:23.985574840 +0200 +++ /var/tmp/diff_new_pack.L1U8Sg/_new 2017-08-12 19:40:23.993573718 +0200 @@ -2,8 +2,10 @@ sysctl.c | 10 ++++++++++ 1 file changed, 10 insertions(+) ---- sysctl.c -+++ sysctl.c 2017-07-06 09:35:09.128849737 +0000 +Index: sysctl.c +=================================================================== +--- sysctl.c.orig ++++ sysctl.c @@ -160,6 +160,8 @@ static char *StripLeadingAndTrailingSpac /* * Read a sysctl setting @@ -13,27 +15,25 @@ static int ReadSetting(const char *restrict const name) { int rc = 0; -@@ -222,6 +224,9 @@ static int ReadSetting(const char *restr - - fp = fopen(tmpname, "r"); - -+ if (iobuf) -+ setvbuf(fp, iobuf, _IOFBF, IOBUFSIZ); -+ - if (!fp) { - switch (errno) { - case ENOENT: -@@ -432,6 +437,9 @@ static int WriteSetting(const char *sett - - fp = fopen(tmpname, "w"); - -+ if (iobuf) -+ setvbuf(fp, iobuf, _IOFBF, IOBUFSIZ); -+ - if (!fp) { - switch (errno) { - case ENOENT: -@@ -806,6 +814,8 @@ int main(int argc, char *argv[]) +@@ -240,6 +242,8 @@ static int ReadSetting(const char *restr + break; + } + } else { ++ if (iobuf) ++ setvbuf(fp, iobuf, _IOFBF, IOBUFSIZ); + errno = 0; + if (fgets(inbuf, sizeof inbuf - 1, fp)) { + /* this loop is required, see +@@ -450,6 +454,8 @@ static int WriteSetting(const char *sett + break; + } + } else { ++ if (iobuf) ++ setvbuf(fp, iobuf, _IOFBF, IOBUFSIZ); + rc = fprintf(fp, "%s\n", value); + if (0 < rc) + rc = 0; +@@ -806,6 +812,8 @@ int main(int argc, char *argv[]) argc -= optind; argv += optind;
participants (1)
-
root@hilbert.suse.de