~vojtech-horky/helenos/helenos-qemu

« back to all changes in this revision

Viewing changes to uspace/app/bdsh/compl.c

  • Committer: Vojtech Horky
  • Date: 2017-06-14 06:22:31 UTC
  • mfrom: (2103.1.569 HelenOS.mainline)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170614062231-q4ui9pyxp0gs2hrl
MergeĀ mainlineĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <errno.h>
33
33
#include <macros.h>
34
34
#include <stdlib.h>
35
 
#include <sys/stat.h>
 
35
#include <vfs/vfs.h>
36
36
 
37
37
#include "cmds/cmds.h"
38
38
#include "compl.h"
359
359
                                char *ent_path;
360
360
                                asprintf(&ent_path, "%s/%s", *cs->path, dent->d_name);
361
361
                                struct stat ent_stat;
362
 
                                if (stat(ent_path, &ent_stat) != 0) {
 
362
                                if (vfs_stat_path(ent_path, &ent_stat) != EOK) {
363
363
                                        /* Error */
364
364
                                        free(ent_path);
365
365
                                        continue;