Changeset b19e892 in mainline for uspace/app/sysinst/futil.c
- Timestamp:
- 2017-04-02T10:39:13Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9c4cf0d
- Parents:
- 80743a1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/sysinst/futil.c
r80743a1 rb19e892 35 35 #include <dirent.h> 36 36 #include <errno.h> 37 #include <fcntl.h>38 37 #include <stdbool.h> 39 38 #include <stdio.h> … … 64 63 printf("Copy '%s' to '%s'.\n", srcp, destp); 65 64 66 sf = open(srcp, O_RDONLY);65 sf = vfs_lookup_open(srcp, WALK_REGULAR, MODE_READ); 67 66 if (sf < 0) 68 67 return EIO; 69 68 70 df = open(destp, O_CREAT | O_WRONLY, 0);69 df = vfs_lookup_open(destp, WALK_REGULAR | WALK_MAY_CREATE, MODE_WRITE); 71 70 if (df < 0) 72 71 return EIO; … … 162 161 struct stat st; 163 162 164 sf = open(srcp, O_RDONLY);163 sf = vfs_lookup_open(srcp, WALK_REGULAR, MODE_READ); 165 164 if (sf < 0) 166 165 return ENOENT;
Note:
See TracChangeset
for help on using the changeset viewer.