1
0
Fork 0

Only prohibit unmounting system apps mounted at system paths.

This commit is contained in:
Alan Plum 2014-06-25 15:45:59 +02:00
parent af2b1c1ff6
commit a85bc09de4
1 changed files with 1 additions and 1 deletions

View File

@ -1236,7 +1236,7 @@ exports.unmount = function (mount) {
var doc = mountFromId(mount);
if (doc.isSystem) {
if (doc.isSystem && (mount.charAt(1) === '_' || mount.indexOf('system') === 1)) {
throw new Error("Cannot unmount system application");
}