1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-12 02:40:34 -08:00
emacs/lib
Paul Eggert e0fdb69430 Fix some minor races in hosts lacking mkostemp.
Gnulib's emulation of mkostemp doesn't have races that Emacs's does.
* configure.ac (mkostemp): Remove check for this function;
gnulib does the check now.
(mkstemp): Remove check for this no-longer-used function.
* lib/mkostemp.c, lib/secure_getenv.c, lib/tempname.c, lib/tempname.h:
* m4/mkostemp.m4, m4/secure_getenv.m4, m4/tempname.m4:
New files, copied from Gnulib.
* lib/gnulib.mk, m4/gnulib-comp.m4: Regenerate.
* admin/merge-gnulib (GNULIB_MODULES): Add mkostemp.
* lib-src/movemail.c (main):
* lib-src/update-game-score.c (write_scores):
Use mkostemp (which now works on all platforms, due to changes
in the portability layer) rather than mktemp (which has a race)
or mkstemp (which we no longer bother with).
* src/callproc.c (create_temp_file):
* src/filelock.c (create_lock_file):
Assume mkostemp, since it's now provided by Gnulib.

Fixes: debbugs:15015
2013-08-04 09:56:56 -07:00
..
acl-errno-valid.c
acl-internal.h
acl.h
acl_entries.c
alloca.in.h
allocator.c
allocator.h
at-func.c
binary-io.c Port recent close-on-exec changes to Cygwin. 2013-07-09 10:16:21 -07:00
binary-io.h Port recent close-on-exec changes to Cygwin. 2013-07-09 10:16:21 -07:00
c-ctype.c
c-ctype.h
c-strcase.h
c-strcasecmp.c
c-strncasecmp.c
careadlinkat.c
careadlinkat.h
close-stream.c
close-stream.h
COPYING
dirent.in.h
dosname.h
dtoastr.c
dtotimespec.c
dup2.c
errno.in.h
euidaccess.c
execinfo.c
execinfo.in.h
faccessat.c
fcntl.c
fcntl.in.h
fdatasync.c
fdopendir.c
file-has-acl.c
filemode.c
filemode.h
fpending.c
fpending.h
fstatat.c
fsync.c
ftoastr.c
ftoastr.h
getdtablesize.c
getgroups.c
getloadavg.c
getopt.c
getopt.in.h
getopt1.c
getopt_.h
getopt_int.h
gettext.h
gettime.c
gettimeofday.c
gnulib.mk Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
group-member.c
intprops.h
inttypes.in.h
lstat.c
Makefile.am
makefile.w32-in
md5.c
md5.h
memrchr.c
min-max.h
mkostemp.c Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
mktime-internal.h
mktime.c
openat-die.c
openat-priv.h
openat-proc.c
openat.h
pathmax.h
pipe2.c Port recent close-on-exec changes to Cygwin. 2013-07-09 10:16:21 -07:00
pselect.c
pthread_sigmask.c
putenv.c
qcopy-acl.c
qset-acl.c
readlink.c
readlinkat.c
root-uid.h
save-cwd.c
save-cwd.h
secure_getenv.c Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
sha1.c
sha1.h
sha256.c
sha256.h
sha512.c
sha512.h
sig2str.c
sig2str.h
signal.in.h
stat-time.c
stat-time.h
stat.c
stdalign.in.h
stdarg.in.h
stdbool.in.h
stddef.in.h
stdint.in.h
stdio.in.h
stdlib.in.h
strftime.c
strftime.h
string.in.h
strtoimax.c
strtol.c
strtoll.c
strtoul.c
strtoull.c
strtoumax.c
symlink.c
sys_select.in.h
sys_stat.in.h
sys_time.in.h
sys_types.in.h
tempname.c Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
tempname.h Fix some minor races in hosts lacking mkostemp. 2013-08-04 09:56:56 -07:00
time.in.h
time_r.c
timespec-add.c
timespec-sub.c
timespec.c
timespec.h
u64.c
u64.h
unistd.c
unistd.in.h
unsetenv.c
utimens.c
utimens.h
verify.h
xalloc-oversized.h