Skip to content

[BUG 100% reproducible] Crash when creating non-existing file without permissions for it #3080

@smac89

Description

@smac89

Description of the problem or steps to reproduce

As the title says, attempting to create a new file which requires sudo permissions to save, results in the above error.

  1. Open micro (without sudo)
  2. Write something
  3. Save the file in a path which requires sudo permissions
  4. Observe the following crash
runtime/panic.go:261 (0x55e610494898)
runtime/panic.go:260 (0x55e610494866)
github.com/zyedidia/micro/v2/internal/action/actions.go:805 (0x55e6108e56f3)
github.com/zyedidia/micro/v2/internal/info/infobuffer.go:152 (0x55e6108bd1a5)
github.com/zyedidia/micro/v2/internal/action/infopane.go:206 (0x55e6108fd39f)
github.com/zyedidia/micro/v2/internal/action/infopane.go:54 (0x55e6108fc571)
github.com/zyedidia/micro/v2/internal/action/infopane.go:129 (0x55e6108fcd0f)
github.com/zyedidia/micro/v2/internal/action/infopane.go:93 (0x55e6108fc9ee)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:474 (0x55e6109371d4)
github.com/zyedidia/micro/v2/cmd/micro/micro.go:394 (0x55e610936a8c)
runtime/internal/atomic/types.go:194 (0x55e610480172)
runtime/asm_amd64.s:1650 (0x55e6104b16e1)

Note that I have the "mkparents": true option enabled.

Specifications

Commit hash: 68d88b5
OS: ArchLinux
Terminal: Konsole

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions