From: Sergey Poznyakoff Date: Fri, 12 Mar 2010 07:48:46 +0000 (+0200) Subject: Bugfixes. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=67b4f3519d838c6f16f5b6b63c0b9b8669fb3dd9;p=chaz%2Ftar Bugfixes. * src/buffer.c (check_label_pattern): Initialize result. * tests/remfiles01.at: Skip if run with root privileges. --- diff --git a/src/buffer.c b/src/buffer.c index 8e1bb9b..dfc8456 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -1374,7 +1374,7 @@ static bool check_label_pattern (const char *label) { char *string; - bool result; + bool result = false; if (fnmatch (volume_label_option, label, 0) == 0) return true; diff --git a/tests/remfiles01.at b/tests/remfiles01.at index 940fd95..73752b4 100644 --- a/tests/remfiles01.at +++ b/tests/remfiles01.at @@ -30,6 +30,7 @@ AT_KEYWORDS([create remove-files remfiles01 gzip]) unset TAR_OPTIONS AT_CHECK([ +AT_UNPRIVILEGED_PREREQ AT_GZIP_PREREQ AT_SORT_PREREQ