/*
 * chown -> fown alias (will fail on non-root, but pandora sees it)
 */

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

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