Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
windows:mingw:win32
mingw32-kwallet
fix-building-with-gpgme.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix-building-with-gpgme.patch of Package mingw32-kwallet
diff -ur kwallet-5.103.0.orig/src/runtime/kwalletd/backend/backendpersisthandler.cpp kwallet-5.103.0/src/runtime/kwalletd/backend/backendpersisthandler.cpp --- kwallet-5.103.0.orig/src/runtime/kwalletd/backend/backendpersisthandler.cpp 2023-02-05 10:26:46.000000000 +0100 +++ kwallet-5.103.0/src/runtime/kwalletd/backend/backendpersisthandler.cpp 2024-08-09 10:18:35.361496507 +0200 @@ -565,7 +565,7 @@ char buffer[4096]; ssize_t bytes = 0; - encryptedData.seek(0, SEEK_SET); + encryptedData.rewind(); while ((bytes = encryptedData.read(buffer, sizeof(buffer) / sizeof(buffer[0]))) > 0) { if (sf.write(buffer, bytes) != bytes) { KMessageBox::errorWId(w, @@ -621,7 +621,7 @@ } GpgME::Data decryptedData; - encryptedData.seek(0, SEEK_SET); + encryptedData.rewind(); GpgME::DecryptionResult res = ctx->decrypt(encryptedData, decryptedData); if (res.error()) { qCDebug(KWALLETBACKEND_LOG) << "Error decrypting message: " << res.error().asString() << ", code " << res.error().code() << ", source " @@ -639,13 +639,13 @@ btnRetry, KStandardGuiItem::cancel()); if (userChoice == KMessageBox::PrimaryAction) { - decryptedData.seek(0, SEEK_SET); + decryptedData.rewind(); goto retry_label; } return -1; } - decryptedData.seek(0, SEEK_SET); + decryptedData.rewind(); QByteArray dataBuffer; while ((bytes = decryptedData.read(buffer, sizeof(buffer) / sizeof(buffer[0])))) { dataBuffer.append(buffer, bytes);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor