Created attachment 144872 [details] (apply with -p1 in src/) Minor: when fgets(3) fails in getbounds(), check for EOF and if not EOF, print strerror(3). Also, don't leak fp during non-error return (trivial since savecore(8) is not a long-running process anyway). Sponsored by: EMC / Isilon storage division
A commit references this bug: Author: bdrewery Date: Wed Sep 17 19:09:58 UTC 2014 New revision: 271720 URL: http://svnweb.freebsd.org/changeset/base/271720 Log: If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a FILE* leak in getbounds(). Submitted by: Conrad Meyer <conrad.meyer@isilon.com> PR: 192032 Sponsored by: EMC / Isilon Storage Division MFC after: 1 week Changes: head/sbin/savecore/savecore.c
A commit references this bug: Author: bdrewery Date: Thu Oct 2 18:11:14 UTC 2014 New revision: 272434 URL: https://svnweb.freebsd.org/changeset/base/272434 Log: MFC r271720: If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a FILE* leak in getbounds(). PR: 192032 Approved by: re (gjb) Changes: _U stable/10/ stable/10/sbin/savecore/savecore.c
A commit references this bug: Author: bdrewery Date: Thu Oct 2 18:12:19 UTC 2014 New revision: 272435 URL: https://svnweb.freebsd.org/changeset/base/272435 Log: MFC r271720: If fgets(3) fails in getbounds(), show strerror(3) if not an EOF. Also fix a FILE* leak in getbounds(). PR: 192032 Changes: _U stable/9/sbin/savecore/ stable/9/sbin/savecore/savecore.c