From 1024369f2da0bb7796ae057d6b8523fdf7dd8a31 Mon Sep 17 00:00:00 2001
From: Quentin Rameau <quinq@fifth.space>
Date: Thu, 18 Feb 2016 12:48:10 +0100
Subject: [PATCH] ls: make the opendir() warning message more consistent

Print the total file path in the warning message.
---
 ls.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ls.c b/ls.c
index 5dbff37..e55c7c5 100644
--- a/ls.c
+++ b/ls.c
@@ -250,7 +250,7 @@ lsdir(const char *path, const struct entry *dir)
 
 	if (!(dp = opendir(dir->name))) {
 		ret = 1;
-		weprintf("opendir %s:", dir->name);
+		weprintf("opendir %s%s:", path, dir->name);
 		return;
 	}
 	if (chdir(dir->name) < 0)