--- /etc/control.d/functions.orig +++ /etc/control.d/functions @@ -90,7 +90,8 @@ local PATHNAME="$1" BASEPATH BASEPATH="${PATHNAME%/*}" - find "$BASEPATH" -maxdepth 1 -path "$PATHNAME" -printf '%m_%u_%g' + [ -n "$BASEPATH" ] || return 1 + find "$BASEPATH/" -maxdepth 1 -path "$PATHNAME" -printf '%m_%u_%g' } control_list()