xaizek / vifm (License: GPLv2+) (since 2018-12-07)
Vifm is a file manager with curses interface, which provides Vi[m]-like environment for managing objects within file systems, extended with some useful ideas from mutt.
Commit 2410222e35e94759dbe53439d20a245fc5a32a7f

Handle error from read_cmd_output() in execute()
Triggering this error is quite hard, just noticed the possibility while
looking at the code.
Author: xaizek
Author date (UTC): 2026-03-04 19:08
Committer name: xaizek
Committer date (UTC): 2026-03-04 19:08
Parent(s): b7b6d08e5e7cef2b5a383d3c1bcab40e59d84bb3
Signing key: 99DC5E4DB05F6BE2
Tree: 1d5903b4c64e5330fe91ce096ac4a1d06906e62c
File Lines added Lines deleted
src/builtin_functions.c 5 0
File src/builtin_functions.c changed (mode: 100644) (index 48e1f7b60..e823cf92e)
... ... execute_cmd(var_t cmd_arg, int interactive, int preserve_stdin)
702 702 cmd_stream = read_cmd_output(cmd, preserve_stdin); cmd_stream = read_cmd_output(cmd, preserve_stdin);
703 703 free(cmd); free(cmd);
704 704
705 if(cmd_stream == NULL)
706 {
707 return var_error();
708 }
709
705 710 if(interactive) if(interactive)
706 711 { {
707 712 ui_cancellation_push_on(); ui_cancellation_push_on();
Hints

Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://code.reversed.top/user/xaizek/vifm

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@code.reversed.top/user/xaizek/vifm

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a pull request:
... clone the repository ...
... make some changes and some commits ...
git push origin master