redirect: Don't dupe lsi_file_exists

Signed-off-by: Ikey Doherty <ikey@solus-project.com>
This commit is contained in:
Ikey Doherty
2017-10-22 00:16:16 +01:00
parent 627c7639cf
commit 1179763531
+1 -6
View File
@@ -21,6 +21,7 @@
#include <string.h>
#include <sys/stat.h>
#include "../common/files.h"
#include "nica/util.h"
#include "redirect.h"
@@ -58,12 +59,6 @@ typedef struct LsiRedirectTable {
*/
static LsiRedirectTable lsi_table = { 0 };
static inline bool lsi_file_exists(const char *path)
{
struct stat st = { .st_ino = 0 };
return (lstat(path, &st) == 0);
}
/**
* Determine the basename'd process
*/