From 6092e365cbfb527a43fc8f5cd15f3d096ac54e4f Mon Sep 17 00:00:00 2001 From: xtraeme Date: Thu, 15 Feb 2007 08:44:34 +0000 Subject: [PATCH] Add missing quotes in readlink to compare with ${per_user_tmp_dir}/@uid, to avoid an error about missing operator. --- etc/rc.d/perusertmp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/rc.d/perusertmp b/etc/rc.d/perusertmp index d5357f2a7f73..720eb11f5772 100755 --- a/etc/rc.d/perusertmp +++ b/etc/rc.d/perusertmp @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: perusertmp,v 1.4 2007/02/06 16:54:27 elad Exp $ +# $NetBSD: perusertmp,v 1.5 2007/02/15 08:44:34 xtraeme Exp $ # # PROVIDE: perusertmp @@ -40,7 +40,7 @@ perusertmp_start() /bin/chmod 0555 ${per_user_tmp_dir} # Create magic link for /tmp. - if [ $(/usr/bin/readlink /tmp) != ${per_user_tmp_dir}/@uid ]; then + if [ "$(/usr/bin/readlink /tmp)" != ${per_user_tmp_dir}/@uid ]; then /bin/rm -rf /tmp /bin/ln -s ${per_user_tmp_dir}/@uid /tmp fi