summaryrefslogtreecommitdiff
path: root/src/PlaylistFile.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-01-16 20:55:19 +0100
committerMax Kellermann <max@musicpd.org>2017-01-16 20:55:19 +0100
commitdcbab8e37a22939f30dc17e2eba8b7ff06064d42 (patch)
treecb825cedb0ed4d4a8c8b41c8a71c07a81c76a2b3 /src/PlaylistFile.cxx
parent5677278251ac4d387a4b92b4244e202fd176ed60 (diff)
PlaylistFile: "playlistadd" creates new playlist if it does not exist, as documented
Diffstat (limited to 'src/PlaylistFile.cxx')
-rw-r--r--src/PlaylistFile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx
index 806bbeea0..2deae4321 100644
--- a/src/PlaylistFile.cxx
+++ b/src/PlaylistFile.cxx
@@ -335,7 +335,7 @@ try {
const auto path_fs = spl_map_to_fs(utf8path);
assert(!path_fs.IsNull());
- FileOutputStream fos(path_fs, FileOutputStream::Mode::APPEND_EXISTING);
+ FileOutputStream fos(path_fs, FileOutputStream::Mode::APPEND_OR_CREATE);
if (fos.Tell() / (MPD_PATH_MAX + 1) >= playlist_max_length)
throw PlaylistError(PlaylistResult::TOO_LARGE,