Module Name: src Committed By: he Date: Sun Jul 21 14:56:16 UTC 2024
Modified Files: src/etc: security Log Message: etc/security: emit proper error message when there are dup groups. ...instead of erroring with "[: $grpname: unexpected operator". To generate a diff of this commit: cvs rdiff -u -r1.131 -r1.132 src/etc/security Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/etc/security diff -u src/etc/security:1.131 src/etc/security:1.132 --- src/etc/security:1.131 Wed Jul 5 12:07:21 2023 +++ src/etc/security Sun Jul 21 14:56:16 2024 @@ -1,6 +1,6 @@ #!/bin/sh - # -# $NetBSD: security,v 1.131 2023/07/05 12:07:21 martin Exp $ +# $NetBSD: security,v 1.132 2024/07/21 14:56:16 he Exp $ # from: @(#)security 8.1 (Berkeley) 6/9/93 # @@ -359,7 +359,7 @@ if checkyesno check_group; then dupgroups="$dupgroups $group" fi done - if [ ! -z $dupgroups ] ; then + if [ ! -z "$dupgroups" ] ; then printf "\n$GRP has duplicate group names.\n" printf "$dupgroups\n" fi