Skip to content

lazy-helm/helm-mini fails after permission changes of parent directory of a file #17184

@tomichec

Description

@tomichec

Description

The problems appears when I try to switch the buffer which is usually done through the helm-mini (SPC b b).

I have been accessing some files before, but then changed the permissions of the directory where they are located, so my regular user does not have read rights any more.

Reproduction guide

  1. make a new directory:
    mkdir -p /tmp/a/
  2. save a new file into the directory:
    emacs /tmp/a/newfile
  3. save, kill the buffer and change the permission (or ownership) of the directory
    chmod 000 /tmp/a/
  4. SPC b b which runs the command lazy-helm/helm-mini fails with the following error
    helm-highlight-files: Getting attributes: Permission denied, /tmp/a/newfile

Observed behaviour:

The window with the frame helm-mini fails to open at such a situation, exiting with Permission denied error, regardless that I intend to visit another file than the one I have no longer access to.

Expected behaviour:

The inaccessible files are ignored (or marked as inaccessible), but the helm-mini still opens with what remains.

System Info

System Info 💻
  • OS: gnu/linux
  • Emacs: 30.1
  • Spacemacs: 0.999.0
  • Spacemacs branch: develop (rev. ccd3e20)
  • Graphic display: t
  • Running in daemon: nil
  • Distribution: spacemacs
  • Editing style: vim
  • Completion: helm
  • Layers:
(python markdown emacs-lisp helm multiple-cursors org treemacs)
  • System configuration features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions