看板 DFBSD_submit 關於我們 聯絡資訊
--ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This fix makes cat use warn instad of perror as it shouuld Obtained from FreeBSD 5.2-CURRENT - Ulf Lilleengen / lulf --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="catpatch.diff" --- cat.c.orig Tue Jul 20 20:15:35 2004 +++ cat.c Tue Jul 20 20:16:33 2004 @@ -290,11 +290,11 @@ switch (flags & O_ACCMODE) { case O_RDONLY: if (shutdown(fd, SHUT_WR) == -1) - perror("cat"); + warn(NULL); break; case O_WRONLY: if (shutdown(fd, SHUT_RD) == -1) - perror("cat"); + warn(NULL); break; default: break; --ikeVEW9yuYc//A+q--