Fix CE ls on non-directory filesystem paths
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m48s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m48s
This commit is contained in:
@@ -121,7 +121,7 @@ int tarfs_format (struct vfs_volume* volume) {
|
||||
int tarfs_describe (struct vfs_volume* volume, const char* path, struct desc* desc) {
|
||||
struct tarfs* tarfs = volume->udata;
|
||||
|
||||
if (strncmp (path, "/", PATH_MAX) == 0) {
|
||||
if ((path[0] == '/') && (path[1] == '\0')) {
|
||||
desc->size = 0;
|
||||
desc->type = FS_DIR;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user