Three patches from FreeWRT people
This commit is contained in:
1 parent
e8feca085d
commit
6cd84dac84
3 files changed
+23
-6
No files matched your search
+3
-1
@@ -296,7 +296,9 @@ static void EditFile(const char *user, const char *file)
|
||||
if (ChangeUser(user, 1) < 0)
|
||||
exit(0);
|
||||
ptr = getenv("VISUAL");
|
||||
if (ptr == NULL || strlen(ptr) > 256)
|
||||
if (ptr == NULL)
|
||||
ptr = getenv("EDITOR");
|
||||
if (ptr == NULL)
|
||||
ptr = PATH_VI;
|
||||
|
||||
ptr = xasprintf("%s %s", ptr, file);
|
||||
|
||||
Reference in new issue
Block a user