Return to cmd-save-buffer.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.21, 2013/10/10 12:26:35 | version 1.22, 2014/04/07 10:32:16 | ||
---|---|---|---|
|
|
||
if (fd != -1) | if (fd != -1) | ||
f = fdopen(fd, "ab"); | f = fdopen(fd, "ab"); | ||
} else { | } else { | ||
fd = openat(cwd, path, O_CREAT|O_RDWR, 0600); | fd = openat(cwd, path, O_CREAT|O_RDWR|O_TRUNC, 0600); | ||
if (fd != -1) | if (fd != -1) | ||
f = fdopen(fd, "wb"); | f = fdopen(fd, "wb"); | ||
} | } |