Ensure the awk passed in variables are quoted as they
authorTim Shimmin <tes@sgi.com>
Tue, 4 Dec 2001 00:27:12 +0000 (00:27 +0000)
committerTim Shimmin <tes@sgi.com>
Tue, 4 Dec 2001 00:27:12 +0000 (00:27 +0000)
can contain spaces.
Somehow this was not a problem on local testing machines.

common.dump

index d7475edd044efbb71b568d2f1ccf70fee86557e9..1148be4545f0fc295fbbdd081f11524355aef8d3 100644 (file)
@@ -1218,7 +1218,7 @@ _check_quota()
     $here/src/feature -G $SCRATCH_DEV && gquota=1
 
     $AWK_PROG -v uquota=$uquota -v gquota=$gquota -v full=$seq.full \
     $here/src/feature -G $SCRATCH_DEV && gquota=1
 
     $AWK_PROG -v uquota=$uquota -v gquota=$gquota -v full=$seq.full \
-              -v usermsg=$usermsg -v groupmsg=$groupmsg '
+              -v usermsg="$usermsg" -v groupmsg="$groupmsg" '
        $0 ~ groupmsg {
                        print "Found group quota:", $0 >>full
                        found_gquota = 1
        $0 ~ groupmsg {
                        print "Found group quota:", $0 >>full
                        found_gquota = 1