mirror of
https://github.com/samba-team/samba.git
synced 2025-02-05 21:57:51 +03:00
2606996653
fix a provision without an smb.conf already setup. Andrew Bartlett (This used to be commit a00044d2294b482ea83e9d7392eb8113a9c94b6e)
17 lines
205 B
Bash
Executable File
17 lines
205 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if test -z "$TMPDIR"; then
|
|
TMPDIR="/tmp"
|
|
fi
|
|
|
|
TMPFILE=$TMPDIR/gdb_run.$$
|
|
cat << EOF > $TMPFILE
|
|
run
|
|
bt
|
|
EOF
|
|
|
|
trap "/bin/rm -f $TMPFILE" EXIT
|
|
CMD="gdb -x $TMPFILE --args $@"
|
|
echo $CMD
|
|
eval "$CMD"
|