Changeset 08e103d4 in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2019-02-05T18:26:05Z (7 years ago)
- Children:
- 1d2f85e
- Parents:
- d066259
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
- File:
-
- 1 edited
-
uspace/app/bdsh/cmds/modules/cp/cp.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
rd066259 r08e103d4 188 188 dentry_type_t dest_type = get_type(dest); 189 189 190 const size_t src_len = str_ size(src);190 const size_t src_len = str_bytes(src); 191 191 192 192 if (src_type == TYPE_FILE) { … … 214 214 dest_type = get_type(dest_path); 215 215 } else if (dest_type == TYPE_NONE) { 216 if (dest_path[str_ size(dest_path) - 1] == '/') {216 if (dest_path[str_bytes(dest_path) - 1] == '/') { 217 217 /* e.g. cp /textdemo /data/dirnotexists/ */ 218 218
Note:
See TracChangeset
for help on using the changeset viewer.
