From 34667eb018bc6616677f6e61d2ebe03e447e573e Mon Sep 17 00:00:00 2001 From: prx Date: Thu, 18 Aug 2022 14:02:45 +0200 Subject: [PATCH] Revert "test no longer required since path can't be empty with set_path" This reverts commit 5cb310dd1bd9a1c1bce45a40912c1243379d648b. --- main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 34a7d70..1ba03ee 100644 --- a/main.c +++ b/main.c @@ -80,7 +80,8 @@ main(int argc, char **argv) syslog(LOG_DAEMON, "file:%s", file); /* go to dir */ - echdir(dir); + if (*dir) + echdir(dir); /* regular file to stdout */ display_file(file);