From: Arun Prakash Jana Date: Tue, 14 May 2019 18:12:22 +0000 (+0530) Subject: Get device info from path X-Git-Tag: v2.5~26 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=3ca86eafbe899a448799832f8ad65d15a01f6e57;p=nnn.git Get device info from path --- diff --git a/src/nnn.c b/src/nnn.c index d7dd57de..51d17940 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2659,7 +2659,7 @@ static int dentfill(char *path, struct entry **dents) num_files = 0; dir_blocks = 0; - if (fstatat(fd, ".", &sb_path, 0) == -1) { + if (fstatat(fd, path, &sb_path, 0) == -1) { closedir(dirp); printwarn(NULL); return 0;