Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vimpager fails with Permission denied error #5208

Open
1 task done
huma-v opened this issue Feb 12, 2025 · 2 comments
Open
1 task done

vimpager fails with Permission denied error #5208

huma-v opened this issue Feb 12, 2025 · 2 comments
Labels

Comments

@huma-v
Copy link

huma-v commented Feb 12, 2025

Description / Steps to reproduce the issue

execute command echo foo | vimpager in bash

Expected behavior

output of foo to the terminal

Actual behavior

error

mkdir: cannot change permissions of ‘/tmp/vimcat_3216’: Permission denied
Could not create temporary directory /tmp/vimcat_3216

I suspect it fails on something like mkdir -m 700 /tmp/vimcat_3216, since MSYS2 doesn't seem to support the -m option of mkdir
Indeed, going into vimcat and vimpager scripts, and editing mkdir_options="-m 700" lines to mkdir_options="" fixes the error

Verification

Windows Version

MSYS_NT-10.0-26100

Are you willing to submit a PR?

If someone points me to a guide on how to do it, sure

@huma-v huma-v added the bug label Feb 12, 2025
@huma-v
Copy link
Author

huma-v commented Feb 12, 2025

Indeed, going into vimcat and vimpager scripts, and editing mkdir_options="-m 700" lines to mkdir_options="" fixes the error

Correction: this seems to be actually working only in latest git version of vimpager

@huma-v
Copy link
Author

huma-v commented Feb 12, 2025

Sigh, another correction: seems the git version has this bug fixed without the need for above edits. So to fix this bugs it is sufficient to use the ce697c4cf34549796e1b533be3e337ca24b62c09 commit in the PKGBUILD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant