/* -*- c-file-style: "linux"; -*-
- Copyright (C) 1998-2001 by Andrew Tridgell
+ Copyright (C) 1998-2001 by Andrew Tridgell <mbp@samba.org>
+ Copyright (C) 2000-2001 by Martin Pool <mbp@samba.org>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
return;
}
- /* then try to pass it to the other end */
+ /* if that fails, try to pass it to the other end */
if (am_server && io_multiplex_write(code, buf, len)) {
return;
}
{
if (dry_run) return NULL;
if (read_only) {errno = EROFS; return NULL;}
+
+ /* TODO: Replace this with a good builtin mkstemp, perhaps
+ * from OpenBSD. Some glibc versions are buggy. */
return mktemp(template);
}