Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
26382713
Commit
26382713
authored
Nov 18, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'v0.19.4'
parents
f37481f8
d6bc5c35
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
40 additions
and
5 deletions
+40
-5
NEWS
NEWS
+15
-0
Client.hxx
src/client/Client.hxx
+1
-1
ClientFile.cxx
src/client/ClientFile.cxx
+1
-1
QueueCommands.cxx
src/command/QueueCommands.cxx
+10
-1
OpusDecoderPlugin.cxx
src/decoder/plugins/OpusDecoderPlugin.cxx
+7
-0
ServerSocket.cxx
src/event/ServerSocket.cxx
+1
-1
AllocatedPath.cxx
src/fs/AllocatedPath.cxx
+5
-1
No files found.
NEWS
View file @
26382713
...
...
@@ -5,6 +5,15 @@ ver 0.20 (not yet released)
* output
- pulse: set channel map to WAVE-EX
ver 0.19.4 (2014/11/18)
* protocol
- workaround for buggy clients that send "add /"
* decoder
- ffmpeg: support opus
- opus: add MIME types audio/ogg and application/ogg
* fix crash on failed filename charset conversion
* fix local socket detection from uid=0 (root)
ver 0.19.3 (2014/11/11)
* protocol
- fix "(null)" result string to "list" when AlbumArtist is disabled
...
...
@@ -127,6 +136,12 @@ ver 0.19 (2014/10/10)
* install systemd unit for socket activation
* Android port
ver 0.18.18 (2014/11/18)
* decoder
- ffmpeg: support opus
* fix crash on failed filename charset conversion
* fix local socket detection from uid=0 (root)
ver 0.18.17 (2014/11/02)
* playlist
- don't allow empty playlist name
...
...
src/client/Client.hxx
View file @
26382713
...
...
@@ -127,7 +127,7 @@ public:
* a local (UNIX domain) socket?
*/
bool
IsLocal
()
const
{
return
uid
>
0
;
return
uid
>
=
0
;
}
unsigned
GetPermission
()
const
{
...
...
src/client/ClientFile.cxx
View file @
26382713
...
...
@@ -41,7 +41,7 @@ Client::AllowFile(Path path_fs, Error &error) const
instance */
return
true
;
if
(
uid
<
=
0
)
{
if
(
uid
<
0
)
{
/* unauthenticated client */
error
.
Set
(
ack_domain
,
ACK_ERROR_PERMISSION
,
"Access denied"
);
return
false
;
...
...
src/command/QueueCommands.cxx
View file @
26382713
...
...
@@ -61,7 +61,16 @@ translate_uri(Client &client, const char *uri)
CommandResult
handle_add
(
Client
&
client
,
gcc_unused
unsigned
argc
,
char
*
argv
[])
{
const
char
*
const
uri
=
translate_uri
(
client
,
argv
[
1
]);
const
char
*
uri
=
argv
[
1
];
if
(
memcmp
(
uri
,
"/"
,
2
)
==
0
)
/* this URI is malformed, but some clients are buggy
and use "add /" to add the whole database, which
was never intended to work, but once did; in order
to retain backwards compatibility, work around this
here */
uri
=
""
;
uri
=
translate_uri
(
client
,
uri
);
if
(
uri
==
nullptr
)
return
CommandResult
::
ERROR
;
...
...
src/decoder/plugins/OpusDecoderPlugin.cxx
View file @
26382713
...
...
@@ -510,6 +510,13 @@ static const char *const opus_suffixes[] = {
};
static
const
char
*
const
opus_mime_types
[]
=
{
/* the official MIME type (RFC 5334) */
"audio/ogg"
,
/* deprecated (RFC 5334) */
"application/ogg"
,
/* deprecated; from an early draft */
"audio/opus"
,
nullptr
};
...
...
src/event/ServerSocket.cxx
View file @
26382713
...
...
@@ -130,7 +130,7 @@ get_remote_uid(int fd)
socklen_t
len
=
sizeof
(
cred
);
if
(
getsockopt
(
fd
,
SOL_SOCKET
,
SO_PEERCRED
,
&
cred
,
&
len
)
<
0
)
return
0
;
return
-
1
;
return
cred
.
uid
;
#else
...
...
src/fs/AllocatedPath.cxx
View file @
26382713
...
...
@@ -46,7 +46,11 @@ AllocatedPath
AllocatedPath
::
FromUTF8
(
const
char
*
path_utf8
)
{
#ifdef HAVE_GLIB
return
AllocatedPath
(
Donate
(),
::
PathFromUTF8
(
path_utf8
));
char
*
path
=
::
PathFromUTF8
(
path_utf8
);
if
(
path
==
nullptr
)
return
AllocatedPath
::
Null
();
return
AllocatedPath
(
Donate
(),
path
);
#else
return
FromFS
(
path_utf8
);
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment