Changeset 23a0368 in mainline for uspace/app/bdsh/cmds/modules/touch/touch.c
- Timestamp:
- 2017-03-30T19:52:23Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ae7bfbbd
- Parents:
- b5b5d84
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/touch/touch.c
rb5b5d84 r23a0368 40 40 #include <str.h> 41 41 #include <getopt.h> 42 #include <sys/stat.h>43 42 #include <errno.h> 43 #include <vfs/vfs.h> 44 44 45 45 #include "config.h" … … 123 123 124 124 /* Check whether file exists if -c (--no-create) option is given */ 125 if ((!no_create) || ((no_create) && (stat(buff, &file_stat) == 0))) 125 if ((!no_create) || 126 ((no_create) && (vfs_stat_path(buff, &file_stat) == EOK))) { 126 127 fd = open(buff, O_RDWR | O_CREAT); 128 } 127 129 128 130 if (fd < 0) {
Note:
See TracChangeset
for help on using the changeset viewer.