Changeset 26618 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Feb 17, 2010 3:59:18 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/linux/RTSystemQueryDmiString-linux.cpp
r26608 r26618 53 53 switch (enmString) 54 54 { 55 case RTSYSDMISTR_PRODUCT_NAME: pszSysFsName = " devices/virtual/dmi/id/product_name"; break;56 case RTSYSDMISTR_PRODUCT_VERSION: pszSysFsName = " devices/virtual/dmi/id/product_version"; break;57 case RTSYSDMISTR_PRODUCT_UUID: pszSysFsName = " devices/virtual/dmi/id/product_uuid"; break;58 case RTSYSDMISTR_PRODUCT_SERIAL: pszSysFsName = " devices/virtual/dmi/id/product_serial"; break;55 case RTSYSDMISTR_PRODUCT_NAME: pszSysFsName = "id/product_name"; break; 56 case RTSYSDMISTR_PRODUCT_VERSION: pszSysFsName = "id/product_version"; break; 57 case RTSYSDMISTR_PRODUCT_UUID: pszSysFsName = "id/product_uuid"; break; 58 case RTSYSDMISTR_PRODUCT_SERIAL: pszSysFsName = "id/product_serial"; break; 59 59 default: 60 60 return VERR_NOT_SUPPORTED; … … 62 62 63 63 int rc; 64 int fd = RTLinuxSysFsOpen(pszSysFsName); 64 int fd = RTLinuxSysFsOpen("devices/virtual/dmi/%s", pszSysFsName); 65 if (fd < 0) 66 fd = RTLinuxSysFsOpen("class/dmi/%s", pszSysFsName); 65 67 if (fd >= 0) 66 68 {
Note:
See TracChangeset
for help on using the changeset viewer.