lib/vserver.in: fixed #351083 (readlink syntax error)
authorintrigeri <intrigeri@boum.org>
Thu, 2 Feb 2006 20:09:50 +0000 (20:09 +0000)
committerintrigeri <intrigeri@boum.org>
Thu, 2 Feb 2006 20:09:50 +0000 (20:09 +0000)
lib/vserver.in

index 1c267c6f0acaacf4a02b02a5d32e566ff8e217b7..8a585bf16787dddb506e53e65b8e1de5c194a202 100644 (file)
@@ -35,7 +35,7 @@ init_vservers() {
    getconf VSERVER /usr/sbin/vserver
    getconf VROOTDIR `if [ -x "$VSERVERINFO" ]; then $VSERVERINFO info SYSINFO | grep '^ *vserver-Rootdir' | awk '{print $2}'; fi`
    # canonicalize VROOTDIR
-   VROOTDIR=`readlink --canonicalize $VROOTDIR`
+   [ -z "$VROOTDIR" ] || VROOTDIR=`readlink --canonicalize $VROOTDIR`
    # init this library's global variables
    vservers_are_available=no
    found_vservers=