X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/deb0e1cf33f66de19d6621e54177faa76017786a..720f700ea5af91c2faab20e74515f157e6e8cbdf:/unix/uxmisc.c diff --git a/unix/uxmisc.c b/unix/uxmisc.c index 4c6a7670..dd04e6f5 100644 --- a/unix/uxmisc.c +++ b/unix/uxmisc.c @@ -141,7 +141,8 @@ FILE *f_open(struct Filename filename, char const *mode, int is_private) return fopen(filename.path, mode); } else { int fd; - assert(mode[0] == 'w'); /* is_private is meaningless for read */ + assert(mode[0] == 'w'); /* is_private is meaningless for read, + and tricky for append */ fd = open(filename.path, O_WRONLY | O_CREAT | O_TRUNC, 0700); if (fd < 0)