Dr. Werner Fink 2010-10-29 15:21:39 +00:00 committed by Git OBS Bridge
parent 07f1c2b810
commit 65338939a1
2 changed files with 32 additions and 4 deletions

View File

@ -1,4 +1,27 @@
--- .dummy --- libconsole.c
+++ .dummy 2010-10-21 09:54:55.000000000 +0000 +++ libconsole.c 2010-10-29 15:16:44.691925956 +0000
@@ -0,0 +1 @@ @@ -707,11 +707,12 @@ static void parselog(unsigned char *buf,
+Just a dummy, remove for a real patch static void copylog(const unsigned char *buf, const size_t s)
{
lock(&llock);
- if (!nl) {
+ if (!nl)
addlog('\n');
- nl = 1;
- }
storelog(buf, s);
+ if (buf[s-1] != '\n')
+ addlog('\n');
+ nl = 1;
unlock(&llock);
}
@@ -770,7 +771,7 @@ void prepareIO(void (*rfunc)(int), void
(void)mkfifo(fifo_name, 0600);
errno = 0;
if (!stat(fifo_name, &st) && S_ISFIFO(st.st_mode)) {
- if ((fdfifo = open(fifo_name, O_RDONLY|O_NOCTTY|O_CLOEXEC)) < 0)
+ if ((fdfifo = open(fifo_name, O_RDWR|O_NOCTTY|O_CLOEXEC)) < 0)
warn("can not open named fifo %s: %s\n", fifo_name, strerror(errno));
}
}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 29 17:20:56 CEST 2010 - werner@suse.de
- Add newline after blogger message
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 27 12:46:16 CEST 2010 - werner@suse.de Wed Oct 27 12:46:16 CEST 2010 - werner@suse.de