Changeset 48955 in vbox for trunk/src/VBox/Main/src-server/HostDnsServiceResolvConf.cpp
- Timestamp:
- Oct 7, 2013 9:59:25 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89652
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/HostDnsServiceResolvConf.cpp
r48805 r48955 32 32 33 33 while ( RT_SUCCESS(rc = RTFileRead(File, &bTest, 1, &cbRead)) 34 && (pu8Buf - (char *)pvBuf) >= 0 34 && (pu8Buf - (char *)pvBuf) >= 0 35 35 && (size_t)(pu8Buf - (char *)pvBuf) < cbBufSize) 36 36 { … … 67 67 HRESULT hrc; 68 68 69 int rc = RTFileOpen(&m_ResolvConfFile, m_ResolvConfFilename.c_str(), 69 int rc = RTFileOpen(&m_ResolvConfFile, m_ResolvConfFilename.c_str(), 70 70 RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE); 71 71 AssertRCReturn(rc, E_FAIL); … … 110 110 continue; 111 111 112 112 m_llNameServers.push_back(com::Utf8Str(buff2)); 113 113 114 114 cNameserversFound++; … … 120 120 121 121 tok = strtok_r(&buff[6], " \t\n", &saveptr); 122 123 124 122 123 if (tok != NULL) 124 m_DomainName = com::Utf8Str(tok); 125 125 } 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.