lib/vserver.in: fixed #351083 (readlink syntax error)
authorintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Thu, 2 Feb 2006 20:09:50 +0000 (20:09 +0000)
committerintrigeri <intrigeri@758a04ac-41e6-0310-8a23-8373a73cc35d>
Thu, 2 Feb 2006 20:09:50 +0000 (20:09 +0000)
git-svn-id: http://code.autistici.org/svn/backupninja/trunk@362 758a04ac-41e6-0310-8a23-8373a73cc35d

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=