mpd/src/command
Max Kellermann 33ee35ab92 command/storage: check if mount point is busy
When mounting something over a directory that is already a mount
point, CompositeStorage::Mount() silently overwrites the previously
mounted storage, disposing it.  After that, SimpleDatabase::Mount()
will fail and handle_mount() will roll back the
CompositeStorage::Mount() command, effectively unmounting what was
there before (and also leaking memory).

Closes https://github.com/MusicPlayerDaemon/MPD/issues/918
2020-07-06 17:49:38 +02:00
..
AllCommands.cxx command/all: "tagtypes" requires no permissions 2020-04-30 13:08:09 +02:00
AllCommands.hxx client/Process, command/all: add noexcept 2019-08-20 20:28:15 +02:00
ClientCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
ClientCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
CommandError.cxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
CommandError.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
CommandListBuilder.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
CommandListBuilder.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
CommandResult.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
DatabaseCommands.cxx db/Interface: CollectUniqueTags() allows multiple "groups" 2019-06-16 10:39:29 +02:00
DatabaseCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
FileCommands.cxx LocateUri: pass URI plugin kind, optionally disables plugin verify 2019-04-18 10:03:15 +02:00
FileCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
MessageCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
MessageCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
NeighborCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
NeighborCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
OtherCommands.cxx util/Time*: move to time/ 2019-12-16 23:02:14 +01:00
OtherCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
OutputCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
OutputCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
PartitionCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
PartitionCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
PlayerCommands.cxx Merge branch 'ucl' of git://github.com/neheb/MPD into v0.21.x 2020-03-26 17:28:21 +01:00
PlayerCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
PlaylistCommands.cxx util/Time*: move to time/ 2019-12-16 23:02:14 +01:00
PlaylistCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
QueueCommands.cxx LocateUri: pass URI plugin kind, optionally disables plugin verify 2019-04-18 10:03:15 +02:00
QueueCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
Request.hxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
StickerCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
StickerCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
StorageCommands.cxx command/storage: check if mount point is busy 2020-07-06 17:49:38 +02:00
StorageCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00
TagCommands.cxx check.h: remove obsolete header 2018-11-19 16:33:49 +01:00
TagCommands.hxx *: copyright year 2018 2018-10-31 17:54:59 +01:00