network/tor: Fix segfault or consuming 100% CPU.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2016-01-14 08:14:05 +07:00
parent fb9fb8a5e1
commit f8eba6cb21

View file

@ -26,7 +26,7 @@
PRGNAM=tor PRGNAM=tor
VERSION=${VERSION:-0.2.7.6} VERSION=${VERSION:-0.2.7.6}
BUILD=${BUILD:-1} BUILD=${BUILD:-2}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
# Select tor's default user/group # Select tor's default user/group
@ -92,7 +92,7 @@ find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \ -o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
CFLAGS="$SLKCFLAGS" \ CFLAGS="$SLKCFLAGS" \
./configure \ ./configure \
@ -103,7 +103,6 @@ CFLAGS="$SLKCFLAGS" \
--libdir=/usr/lib${LIBDIRSUFFIX} \ --libdir=/usr/lib${LIBDIRSUFFIX} \
--with-tor-user=$TOR_USER \ --with-tor-user=$TOR_USER \
--with-tor-group=$TOR_GROUP \ --with-tor-group=$TOR_GROUP \
--enable-openbsd-malloc \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make make