/* Written by Jim Meyering and Eric Blake. */
#include <config.h>
-#include <stdio.h>
#include <sys/types.h>
#include <getopt.h>
#include "error.h"
#include "filenamecat.h"
#include "quote.h"
+#include "stdio--.h"
#include "tempname.h"
/* The official name of this program (e.g., no `g' prefix). */
cp --verbose a b >&- 2>/dev/null && fail=1
rm -Rf tmpfile-?????? || fail=1
mktemp tmpfile-XXXXXX >&- 2>/dev/null && fail=1
- test -e tmpfile-?????? && fail=1
+ mktemp tmpfile-XXXXXX -q >&- 2>/dev/null && fail=1
+ case `echo tmpfile-??????` in 'tmpfile-??????') ;; *) fail=1 ;; esac
fi
# Likewise for /dev/full, if /dev/full works.
cp --verbose a b >/dev/full 2>/dev/null && fail=1
rm -Rf tmpdir-?????? || fail=1
mktemp -d tmpdir-XXXXXX >/dev/full 2>/dev/null && fail=1
- test -e tmpdir-?????? && fail=1
+ mktemp -d -q tmpdir-XXXXXX >/dev/full 2>/dev/null && fail=1
+ case `echo tmpfile-??????` in 'tmpfile-??????') ;; *) fail=1 ;; esac
fi
Exit $fail