VirtualBox

Changeset 50296 in vbox


Ignore:
Timestamp:
Jan 30, 2014 7:33:06 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91955
Message:

Intaller/Solaris: Reverse binary checks in smf scripts, check whether the file exists first and not after checking whether it is executable

Location:
trunk/src/VBox/Installer/solaris
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/solaris/smf-vboxballoonctrl.sh

    r44336 r50296  
    22# $Id$
    33
    4 # Copyright (C) 2008-2013 Oracle Corporation
     4# Copyright (C) 2008-2014 Oracle Corporation
    55#
    66# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2525case $VW_OPT in
    2626    start)
    27         if [ ! -x /opt/VirtualBox/VBoxBalloonCtrl ]; then
     27        if [ ! -f /opt/VirtualBox/VBoxBalloonCtrl ]; then
    2828            echo "ERROR: /opt/VirtualBox/VBoxBalloonCtrl does not exist."
    2929            return $SMF_EXIT_ERR_CONFIG
    3030        fi
    3131
    32         if [ ! -f /opt/VirtualBox/VBoxBalloonCtrl ]; then
    33             echo "ERROR: /opt/VirtualBox/VBoxBalloonCtrl does not exist."
     32        if [ ! -x /opt/VirtualBox/VBoxBalloonCtrl ]; then
     33            echo "ERROR: /opt/VirtualBox/VBoxBalloonCtrl is not executable."
    3434            return $SMF_EXIT_ERR_CONFIG
    3535        fi
  • trunk/src/VBox/Installer/solaris/smf-vboxwebsrv.sh

    r41369 r50296  
    22# $Id$
    33
    4 # Copyright (C) 2008-2012 Oracle Corporation
     4# Copyright (C) 2008-2014 Oracle Corporation
    55#
    66# This file is part of VirtualBox Open Source Edition (OSE), as
     
    2525case $VW_OPT in
    2626    start)
    27         if [ ! -x /opt/VirtualBox/vboxwebsrv ]; then
     27        if [ ! -f /opt/VirtualBox/vboxwebsrv ]; then
    2828            echo "ERROR: /opt/VirtualBox/vboxwebsrv does not exist."
    2929            return $SMF_EXIT_ERR_CONFIG
    3030        fi
    3131
    32         if [ ! -f /opt/VirtualBox/vboxwebsrv ]; then
    33             echo "ERROR: /opt/VirtualBox/vboxwebsrv does not exist."
     32        if [ ! -x /opt/VirtualBox/vboxwebsrv ]; then
     33            echo "ERROR: /opt/VirtualBox/vboxwebsrv is not executable."
    3434            return $SMF_EXIT_ERR_CONFIG
    3535        fi
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette