From 478e6a9023c51521b47701673c8335f51dbfbdec Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 1 Nov 2019 16:46:39 +0100 Subject: Cleanup/overhaul of how symlinks are handled and how paths are parsed. Now `bb` will fail on `bb nonexistant/..` and will display `/foo/baz/atfoo/` as `/foo/` if `atfoo` is a symlink to `/foo` --- bb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bb.h') diff --git a/bb.h b/bb.h index c5378a9..1a3bd70 100644 --- a/bb.h +++ b/bb.h @@ -206,7 +206,7 @@ static int is_simple_bbcmd(const char *s); static entry_t* load_entry(bb_t *bb, const char *path, int clear_dots); static inline int matches_cmd(const char *str, const char *cmd); static void* memcheck(void *p); -static void normalize_path(const char *root, const char *path, char *pbuf, int clear_dots); +static void normalize_path(const char *root, const char *path, char *pbuf); static int populate_files(bb_t *bb, const char *path); static void print_bindings(int fd); static void run_bbcmd(bb_t *bb, const char *cmd); -- cgit v1.2.3