Marcus Meissner
fb512c6276
- cleanup package: * don't build binaries which are not installed * remove unused sources * remove patches (or parts of patches) which modify unused files * remove old build conditions (sysvinit, util-linux, mkinitrd) * remove unused dependencies - this cleanup does not change the resulting binaries (except some package dependencies) - list of removed patches: * sysvinit-2.82-startstop.patch * sysvinit-2.88+dsf-blowfish.dif * sysvinit-2.88+dsf-crypt.patch * sysvinit-2.88+dsf-env.patch * sysvinit-2.88dsf-multiple-sulogin.patch * sysvinit-2.88+dsf-run.diff * sysvinit-2.88+dsf-xen.patch - list of modified patches: * notify-pam-dead.patch * sysvinit-2.88+dsf.dif * sysvinit-2.88+dsf-sulogin.diff * sysvinit-2.88dsf-suse.patch OBS-URL: https://build.opensuse.org/request/show/347468 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysvinit?expand=0&rev=214
19 lines
500 B
Diff
19 lines
500 B
Diff
Index: src/killall5.c
|
|
===================================================================
|
|
--- src/killall5.c (revision 116)
|
|
+++ src/killall5.c (working copy)
|
|
@@ -508,9 +508,11 @@
|
|
|
|
/* Read SID & statname from it. */
|
|
if ((fp = fopen(path, "r")) != NULL) {
|
|
- if (!fgets(buf, sizeof(buf), fp))
|
|
- buf[0] = '\0';
|
|
+ size_t len;
|
|
|
|
+ len = fread(buf, sizeof(char), sizeof(buf)-1, fp);
|
|
+ buf[len] = '\0';
|
|
+
|
|
if (buf[0] == '\0') {
|
|
nsyslog(LOG_ERR,
|
|
"can't read from %s\n", path);
|