← Commit list

4e9ca7528

Denis Vlasenko
Denis Vlasenko
2008-01-07
FAILED Duration: 14s

Subject

syslogd: fix shmat error check

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

sysklogd/syslogd.c+1 -1
@@ -218,7 +218,7 @@ static void ipcsyslog_init(void)
}
G.shbuf = shmat(G.shmid, NULL, 0);
- if (!G.shbuf) {
+ if (G.shbuf == (void*) -1L) { /* shmat has bizarre error return */
bb_perror_msg_and_die("shmat");
}