VirtualBox

Changeset 99103 in vbox for trunk


Ignore:
Timestamp:
Mar 22, 2023 7:02:33 AM (19 months ago)
Author:
vboxsync
Message:

ValidationKit: fix for checking if user is root

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/base.py

    r99086 r99103  
    720720        if sOs == 'solaris':
    721721            # Both 'coreadm -e ...' and 'svccfg apply' only work if running with all privileges.
    722             fIsRoot = os.getuid() == 0;
     722            fIsRoot = os.geteuid() == 0;
    723723            if fIsRoot is False:
    724724                return True;
Note: See TracChangeset for help on using the changeset viewer.

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