Changes in uspace/app/bdsh/cmds/modules/touch/touch.c [8d2dd7f2:39330200] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/touch/touch.c
r8d2dd7f2 r39330200 82 82 int longind; 83 83 bool no_create = false; 84 struct stat file_stat;84 vfs_stat_t file_stat; 85 85 int fd = -1; 86 86 char *buff = NULL; … … 123 123 if ((!no_create) || 124 124 ((no_create) && (vfs_stat_path(buff, &file_stat) == EOK))) { 125 fd = vfs_lookup(buff, WALK_REGULAR | WALK_MAY_CREATE); 125 errno_t rc = vfs_lookup(buff, WALK_REGULAR | WALK_MAY_CREATE, &fd); 126 if (rc != EOK) { 127 fd = -1; 128 } 126 129 } 127 130
Note:
See TracChangeset
for help on using the changeset viewer.