head 1.3; access; symbols pkgsrc-2026Q1:1.2.0.2 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.1.0.8 pkgsrc-2025Q4-base:1.1 pkgsrc-2025Q3:1.1.0.6 pkgsrc-2025Q3-base:1.1 pkgsrc-2025Q2:1.1.0.4 pkgsrc-2025Q2-base:1.1 pkgsrc-2025Q1:1.1.0.2 pkgsrc-2025Q1-base:1.1; locks; strict; comment @// @; 1.3 date 2026.03.27.11.06.04; author kikadf; state Exp; branches; next 1.2; commitid jPuck927UItkuBzG; 1.2 date 2026.01.08.17.52.20; author kikadf; state Exp; branches; next 1.1; commitid 4j0vvtbc75jUeCpG; 1.1 date 2025.02.15.07.40.14; author wiz; state Exp; branches; next ; commitid iV06rQYs809LmxJF; desc @@ 1.3 log @net/megacmd: update to 2.5.0 Wed Mar 11 10:36:46 AM UTC 2026 - linux@@mega.co.nz - Update to version 2.5.0: * Shell UX improvements: empty Enter shows a new prompt; no duplicate prompt while command is executing * Sync engine improvements: prevent re-uploading data when local drive fingerprint has changed * put: Fixed -c (autocreate) not working when destination is an absolute path * mediainfo: Fixed audio file duration not being displayed * Transfers: prevent failures on resumption * thumbnail/preview: Print error when the requested file does not exist * share: Return success (exit code 0) when no shares exist below the current folder * passwd: fixes issues when 2FA is enabled * Path and string handling fixes (trailing separators, trimming) * Expanded unit test coverage * Fix: Improved restart-after-update reliability on POSIX (server PID changes after update) * Stability, memory, typos and other improvements - Use builtin megasdk-10.8.0 @ text @$NetBSD: patch-src_megacmdcommonutils.cpp,v 1.2 2026/01/08 17:52:20 kikadf Exp $ * BSDs use the functions of linux * Fix ctype(3) tolower usage --- src/megacmdcommonutils.cpp.orig 2026-03-21 08:58:56.000000000 +0000 +++ src/megacmdcommonutils.cpp @@@@ -556,7 +556,7 @@@@ string toLower(const std::string& str) std::string lower = str; for (char& c : lower) { - c = std::tolower(c); + c = static_cast(std::tolower(static_cast(c))); } return lower; } @@@@ -1089,7 +1089,8 @@@@ bool isValidEmail(const string &email) return true; } -#ifdef __linux__ +#if defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \ + defined(__NetBSD__) || defined(__DragonFly__) std::string getCurrentExecPath() { std::string path = "."; @ 1.2 log @ net/megacmd: fix crash on NetBSD-11 @ text @d1 1 a1 1 $NetBSD: patch-src_megacmdcommonutils.cpp,v 1.1 2025/02/15 07:40:14 wiz Exp $ d6 1 a6 1 --- src/megacmdcommonutils.cpp.orig 2025-04-04 10:39:49.000000000 +0000 d8 1 a8 1 @@@@ -660,7 +660,7 @@@@ string toLower(const std::string& str) d17 2 a18 2 @@@@ -1153,7 +1153,8 @@@@ bool isValidEmail(string email) || (email.find("@@") > email.find_last_of("."))); @ 1.1 log @net/megacmd: update to 2.0.0 Provided by Robert Bagdan in wip. - Update to version 2.0.0: * New Sync Engine: See sync-issues and sync-ignore commands * Rotating Logger: Introduced a robust rotating logging system across all platforms for better performance and debugging * Platform-specific enhancements: Addressed various file descriptor issues on Linux and macOS, and improved non-ascii support on Windows * Improved overall reliability: Fixed memory leaks, resolved potential data races, and eliminated deadlock scenarios * Fixed an issue when handling double-quoted arguments * Various fixes and refinements to enhance usability and performance - Use builtin megasdk-8.3.1 @ text @d1 1 a1 1 $NetBSD$ d4 1 d6 1 a6 1 --- src/megacmdcommonutils.cpp.orig 2025-02-07 09:43:13.320748794 +0100 d8 10 a17 1 @@@@ -1128,7 +1128,8 @@@@ bool isValidEmail(string email) @