D24489: KAutosaveFile not respecting maximum filename length

Ahmad Samir noreply at phabricator.kde.org
Tue Dec 3 19:05:47 GMT 2019


ahmadsamir added a comment.


  I was wrong, indeed NAME_MAX is what should be used; looking at the code in KAutoSaveFile::open(), and how tempFileName() is actually used:
  
    tempFile = staleFilesDir + QChar::fromLatin1('/') + d->tempFileName();
  
  NAME_MAX is what should be used, as tempFileName() returns the "filename" part only, not the whole path.

REPOSITORY
  R244 KCoreAddons

REVISION DETAIL
  https://phabricator.kde.org/D24489

To: mardelle, #frameworks, dfaure
Cc: ahmadsamir, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191203/604fdced/attachment.html>


More information about the Kde-frameworks-devel mailing list