summaryrefslogtreecommitdiff
path: root/usr.bin/vi/common/exf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/vi/common/exf.c')
-rw-r--r--usr.bin/vi/common/exf.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/usr.bin/vi/common/exf.c b/usr.bin/vi/common/exf.c
index f8121ef1e07..d6ab1ca5249 100644
--- a/usr.bin/vi/common/exf.c
+++ b/usr.bin/vi/common/exf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exf.c,v 1.28 2013/12/01 20:22:34 krw Exp $ */
+/* $OpenBSD: exf.c,v 1.29 2014/11/10 21:31:42 tedu Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
@@ -856,21 +856,6 @@ file_write(sp, fm, tm, name, flags)
msgq_str(sp, M_ERR, name,
"252|%s: write lock was unavailable");
-#if __linux__
- /*
- * XXX
- * In libc 4.5.x, fdopen(fd, "w") clears the O_APPEND flag (if set).
- * This bug is fixed in libc 4.6.x.
- *
- * This code works around this problem for libc 4.5.x users.
- * Note that this code is harmless if you're using libc 4.6.x.
- */
- if (LF_ISSET(FS_APPEND) && lseek(fd, (off_t)0, SEEK_END) < 0) {
- msgq(sp, M_SYSERR, "%s", name);
- return (1);
- }
-#endif
-
/*
* Use stdio for buffering.
*