Changeset ce04ea44 in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2017-04-02T12:27:14Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade
- Children:
- d4067a7
- Parents:
- 163fc09
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
r163fc09 rce04ea44 413 413 } 414 414 415 while ((bytes = read(fd1, &posr, buff, blen)) > 0) {416 if ((bytes = write(fd2, &posw, buff, bytes)) < 0)415 while ((bytes = vfs_read(fd1, &posr, buff, blen)) > 0) { 416 if ((bytes = vfs_write(fd2, &posw, buff, bytes)) < 0) 417 417 break; 418 418 copied += bytes; … … 420 420 421 421 if (bytes < 0) { 422 printf("\nError copying %s, (%d)\n", src, errno);422 printf("\nError copying %s, (%d)\n", src, bytes); 423 423 copied = bytes; 424 424 }
Note:
See TracChangeset
for help on using the changeset viewer.