* [gentoo-commits] gentoo-x86 commit in sys-apps/salinfo/files: salinfo-1.2-build.patch
@ 2014-03-30 6:28 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2014-03-30 6:28 UTC (permalink / raw
To: gentoo-commits
vapier 14/03/30 06:28:51
Added: salinfo-1.2-build.patch
Log:
New package by me.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Revision Changes Path
1.1 sys-apps/salinfo/files/salinfo-1.2-build.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/salinfo/files/salinfo-1.2-build.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/salinfo/files/salinfo-1.2-build.patch?rev=1.1&content-type=text/plain
Index: salinfo-1.2-build.patch
===================================================================
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,4 @@
+prefix = $(DESTDIR)
mandir := /usr/share/man
sbindir := /usr/sbin
logdir := /var/log/salinfo
@@ -5,7 +6,7 @@ initdir := /etc/rc.d/init.d
sysconfigdir := /etc/sysconfig
logrotate := /etc/logrotate.d
-CFLAGS += -Wall -g -O2 $(EXTRA_CFLAGS)
+CFLAGS += -Wall $(EXTRA_CFLAGS)
export CFLAGS
ifneq ($(VPATH),)
--- a/sal.h
+++ b/sal.h
@@ -27,6 +27,8 @@
* Keith Owens <kaos@sgi.com>
*/
+#include <asm/fpu.h>
+
#include "efi.h"
#include "pal.h"
--- a/salinfo_decode.c
+++ b/salinfo_decode.c
@@ -303,7 +303,7 @@ log_dropped_records(void)
snprintf(line, sizeof(line), ", %d %s",
dropped_all[i]->dropped, dropped_all[i]->name);
dropped_all[i]->dropped = 0;
- strncat(log, line, sizeof(log));
+ strncat(log, line, sizeof(log) - strlen(log));
}
}
syslog(LOG_NOTICE, "%s", log);
@@ -424,7 +424,7 @@ talk_to_sal (void)
int fd;
char filename[PATH_MAX];
snprintf(filename, sizeof(filename), "%s/%s/.check", directory, rd[i]);
- if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC)) < 0) {
+ if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC, 0644)) < 0) {
perror(filename);
goto out;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-30 6:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30 6:28 [gentoo-commits] gentoo-x86 commit in sys-apps/salinfo/files: salinfo-1.2-build.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox