1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r13306: Do not call netbios_setup() if this file is sourced by sh or bash.

This commit is contained in:
Lars Müller 2006-02-03 15:39:07 +00:00 committed by Gerald (Jerry) Carter
parent e2fc8a196a
commit 72c6432ae8

View File

@ -58,4 +58,8 @@ netbios_setup() {
fi
}
netbios_setup
# Only call netbios_setup if we're not sourced.
case "$0" in
*bin/sh|*bin/bash) : ;;
*) netbios_setup ;;
esac