Commit c2fdb90d authored by Jacek Chodak's avatar Jacek Chodak Committed by Jacek Maksymilian Chodak
Browse files

Resolve: #121 - OSM CPIO octal size tapes failed to read due to incorrect...

Resolve: #121 - OSM CPIO octal size tapes failed to read due to incorrect formatting sscanf function
parent 9e103173
Pipeline #4341245 passed with stages
in 41 minutes and 4 seconds
......@@ -48,7 +48,7 @@ size_t castor::tape::tapeFile::CPIO::decode(const uint8_t* puiData, const size_t
&m_uiNlink, &m_uiRdev, reinterpret_cast<uint64_t*>(&m_ulMtime),
&m_uiNameSize, &m_ui64FileSize, &m_strFid[0]);
} else {
strFormat << "%06c%06o%06o%06o%06o%06o%06o%06o%011lo%06oH%010lX%" << CPIO::PATHLEN - 1 << "s";
strFormat << "%06c%06o%06o%06o%06o%06o%06o%06o%11lo%06o%011lo%" << CPIO::PATHLEN - 1 << "s";
sscanf(reinterpret_cast<const char*>(puiData), strFormat.str().c_str(),
&m_strMagic[0], &m_uiDev, &m_uiIno, &m_uiMode, &m_uiUid, &m_uiGid,
&m_uiNlink, &m_uiRdev, reinterpret_cast<uint64_t*>(&m_ulMtime),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment