forked from MusicPlayerDaemon/MPD
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pull] master from MusicPlayerDaemon:master #22
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Necessary for including Client.hxx.
Users are confused by "Access denied". Let's write an error message that is more clear. Closes #2184
All Linux distributions have at least version 4, and thus I cannot test with older versions.
SOCK_CLOEXEC has been added to libnfs version 2, and since we require at least version 4, we can safely remove this call.
libnfs version 6 has major API changes and MPD 0.23 has never been adapted to these. This additional configure-time check fixes potential compile-time failures.
A new symlink causes `IN_CREATE`. Usually, we catch `IN_CREATE` only with IN_ISDIR to watch the new directory, but otherwise `IN_CREATE` is not handled. Regular files are "created" but they have usable content only with `IN_CLOSE_WRITE`. Yet symlinks have only `IN_CREATE` and they are immediately usable. Closes #2192
Don't zero-initialize the buffers. This removes some useless overhead.
This reverts commit 56c0733. GCC 8 is no longer supported.
GCC 10 doesn't have std::make_unique_for_overwrite(), so let's drop it.
Reviewer's Guide by SourceryThis pull request primarily focuses on updating the minimum required compiler versions, enhancing compiler warning flags, and addressing memory allocation practices. Additionally, it includes minor fixes related to file access permissions and inotify event handling. Sequence diagram for improved file access error messages on WindowssequenceDiagram
participant Client
participant FileSystem
participant ErrorHandler
Client->>FileSystem: Request file access
alt Windows platform
FileSystem->>ErrorHandler: Throw ProtocolError
ErrorHandler-->>Client: 'Access to local files not implemented on Windows'
else Unix platform
alt Unauthenticated client
FileSystem->>ErrorHandler: Throw ProtocolError
ErrorHandler-->>Client: 'Access to local files via TCP is not allowed'
else Insufficient permissions
FileSystem->>ErrorHandler: Throw ProtocolError
ErrorHandler-->>Client: 'Access denied due to file permissions'
end
end
Class diagram showing memory allocation changesclassDiagram
class MemoryAllocation {
+make_unique[]
+make_unique_for_overwrite[]
}
note for MemoryAllocation "Changed from make_unique[] to make_unique_for_overwrite[] for uninitialized arrays"
class AffectedClasses {
+MadDecoder
+SidplayGlobal
+WinICU
+Id3Load
+FileCommands
+ReadOperation
+ICUUtil
+NfsFileReader
+Queue
+ApeLoader
}
AffectedClasses --> MemoryAllocation: uses
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Update the minimum required GCC version to 12 and Clang version to 14. Replace make_unique with make_unique_for_overwrite for dynamic allocations. Improve error messages for file access permissions. Refine the inotify update mechanism to handle newly created symlinks and directories more effectively. Update build dependencies and CI configurations accordingly.
Enhancements:
Build:
CI:
Tests: