/*
 * CWD-local writes -> *** glob for subtree
 */

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>

int main(int argc, char **argv)
{
	(void)argc;
	char t[256];
	snprintf(t, sizeof t, "%s/t023_XXXXXX", argv[1]);
	int fd = mkstemp(t);
	if (fd >= 0) {
		write(fd, "x", 1);
		close(fd);
		unlink(t);
	}
	return 0;
}
