mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
7b2ebe8172
Regen patches
20 lines
372 B
C
20 lines
372 B
C
--- abbrev.c.orig 1996-03-07 17:34:41 UTC
|
|
+++ abbrev.c
|
|
@@ -274,7 +274,16 @@ EditAbbrevs()
|
|
"jabbXXXXXX"
|
|
#endif
|
|
);
|
|
+#ifndef NO_MKSTEMP
|
|
+ {
|
|
+ int fd = mkstemp(tname);
|
|
+ if ( fd == -1 )
|
|
+ err( 1, "can't create temp file %s", tname );
|
|
+ close( fd );
|
|
+ }
|
|
+#else
|
|
(void) mktemp(tname);
|
|
+#endif
|
|
save_abbrevs(tname);
|
|
setfname(ebuf, tname);
|
|
read_file(tname, NO);
|