X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5ea184d1f9e8ce59e60297f4469912722f7c722e..b078de41dfbae96dfb831e6e06df047b669adc4c:/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)