Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3d14bd2

Browse files
committed
Fix "is db labeled test?" in chkselinuxenv script.
Don't test whether the number of labels is numerically equal to zero;count(*) isn't going return zero anyway, and the current coding blowsup if it returns an empty string or an error.
1 parentd532184 commit3d14bd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/sepgsql/chkselinuxenv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ echo "ok"
210210
# template1 database must be labeled
211211
echo -n"checking for labels in template1 ..."
212212
NUM=`${CMD_PSQL} template1 -Atc'SELECT count(*) FROM pg_catalog.pg_seclabel'2>/dev/null`
213-
if [-z"${NUM}"-o"$NUM"-eq 0];then
213+
if [-z"${NUM}" ];then
214214
echo"failed"
215215
echo""
216216
echo"In order to regression test sepgsql, initial labels must be assigned"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp