Implement read_dir_entry () VFS op, CE add ls command
This commit is contained in:
@@ -132,7 +132,7 @@ struct proc* proc_from_file (struct proc* proc1, const char* volume, const char*
|
||||
break;
|
||||
}
|
||||
|
||||
if ((ret = vfs_describe (proc1, volume, path, &desc, rctx)) < 0) {
|
||||
if ((ret = vfs_describe (proc1, volume, path, &desc)) < 0) {
|
||||
vfs_volume_close (proc1, volume, rctx);
|
||||
return NULL;
|
||||
}
|
||||
@@ -149,7 +149,7 @@ struct proc* proc_from_file (struct proc* proc1, const char* volume, const char*
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if ((ret = vfs_read (proc1, volume, path, temp_buffer, 0, desc.size, rctx)) < 0) {
|
||||
if ((ret = vfs_read (proc1, volume, path, temp_buffer, 0, desc.size)) < 0) {
|
||||
free (temp_buffer);
|
||||
vfs_volume_close (proc1, volume, rctx);
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user