Return to sort.c CVS log | Up to [local] / src / usr.bin / sort |
version 1.80, 2015/10/13 16:21:42 | version 1.81, 2015/10/13 16:55:03 | ||
---|---|---|---|
|
|
||
sort_asprintf(&outfile, "%s.XXXXXXXXXX", | sort_asprintf(&outfile, "%s.XXXXXXXXXX", | ||
real_outfile); | real_outfile); | ||
if ((fd = mkstemp(outfile)) == -1 || | if ((fd = mkstemp(outfile)) == -1 || | ||
fchmod(fd, sb.st_mode & ALLPERMS) == -1) | fchmod(fd, sb.st_mode & ACCESSPERMS) == -1) | ||
err(2, "%s", outfile); | err(2, "%s", outfile); | ||
close(fd); | close(fd); | ||
tmp_file_atexit(outfile); | tmp_file_atexit(outfile); |