mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
Fix visiting and saving writable content provider files
* java/org/gnu/emacs/EmacsService.java (checkContentUri): Improve debug output. * lisp/files.el (basic-save-buffer): Check whether or not file itself exists before checking for the existence of the directory containing it. * src/android.c (android_open): Don't forget to set errno after open_content_uri fails.
This commit is contained in:
parent
4354a3b699
commit
48b5a770f2
3 changed files with 19 additions and 2 deletions
|
|
@ -752,6 +752,8 @@ public final class EmacsService extends Service
|
|||
if (writable)
|
||||
mode += "w";
|
||||
|
||||
Log.d (TAG, "checkContentUri: checking against mode " + mode);
|
||||
|
||||
try
|
||||
{
|
||||
fd = resolver.openFileDescriptor (Uri.parse (name), mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue