[PATCH] make cat use warn instead of perror

看板DFBSD_submit作者時間21年前 (2004/07/21 10:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
--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--
文章代碼(AID): #10_TMj00 (DFBSD_submit)