mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix #575
This commit is contained in:
parent
0f01bd7d3a
commit
74b95eb9bd
|
@ -691,7 +691,6 @@ static int dentfind(const char *fname, int n);
|
||||||
static void move_cursor(int target, int ignore_scrolloff);
|
static void move_cursor(int target, int ignore_scrolloff);
|
||||||
static inline bool getutil(char *util);
|
static inline bool getutil(char *util);
|
||||||
static size_t mkpath(const char *dir, const char *name, char *out);
|
static size_t mkpath(const char *dir, const char *name, char *out);
|
||||||
static char *xgetenv(const char *name, char *fallback);
|
|
||||||
static bool plugscript(const char *plugin, uchar flags);
|
static bool plugscript(const char *plugin, uchar flags);
|
||||||
static char *load_input(int fd, const char *path);
|
static char *load_input(int fd, const char *path);
|
||||||
|
|
||||||
|
@ -7120,7 +7119,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
#ifndef NOFIFO
|
#ifndef NOFIFO
|
||||||
/* Create fifo */
|
/* Create fifo */
|
||||||
fifopath = getenv("NNN_FIFO");
|
fifopath = xgetenv("NNN_FIFO", NULL);
|
||||||
if (fifopath) {
|
if (fifopath) {
|
||||||
if (mkfifo(fifopath, 0600) != 0 && !(errno == EEXIST && access(fifopath, W_OK) == 0)) {
|
if (mkfifo(fifopath, 0600) != 0 && !(errno == EEXIST && access(fifopath, W_OK) == 0)) {
|
||||||
xerror();
|
xerror();
|
||||||
|
|
Loading…
Reference in a new issue