mirror of
https://github.com/jarun/nnn.git
synced 2025-02-03 06:46:34 +00:00
Get device info from path
This commit is contained in:
parent
ad076db56c
commit
3ca86eafbe
|
@ -2659,7 +2659,7 @@ static int dentfill(char *path, struct entry **dents)
|
||||||
num_files = 0;
|
num_files = 0;
|
||||||
dir_blocks = 0;
|
dir_blocks = 0;
|
||||||
|
|
||||||
if (fstatat(fd, ".", &sb_path, 0) == -1) {
|
if (fstatat(fd, path, &sb_path, 0) == -1) {
|
||||||
closedir(dirp);
|
closedir(dirp);
|
||||||
printwarn(NULL);
|
printwarn(NULL);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue