blob: 9c5a97f8fbd225b790767185314b5d8236b948a3 [file] [log] [blame]
#!/bin/sh
# Check uid decoding.
. "${srcdir=.}/init.sh"
s="${uid_syscall_suffix-}"
w="${uid_t_size-}"
run_prog ./uid$s$w
case "$STRACE_ARCH" in
alpha) getuid=getxuid ;;
*) getuid=getuid ;;
esac
syscalls="$getuid$s,setuid$s,getresuid$s,setreuid$s,setresuid$s,fchown$s,getgroups$s"
run_strace -e trace="$syscalls" $args
AWK=gawk
match_awk "$LOG" "$srcdir"/uid.awk "$STRACE $args output mismatch" -v suffix="$s"
exit 0