Changeset 1569a9b in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2017-12-24T16:40:33Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 48fd597
- Parents:
- a1026da
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2017-12-24 16:40:33)
- git-committer:
- GitHub <noreply@…> (2017-12-24 16:40:33)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
ra1026da r1569a9b 266 266 267 267 /* call copy_file and exit */ 268 rc = (copy_file(src, dest_path, blen, vb) < 0); 268 if (copy_file(src, dest_path, blen, vb) < 0) { 269 rc = EIO; 270 } 269 271 270 272 } else if (src_type == TYPE_DIR) { … … 434 436 if (rc != EOK) { 435 437 printf("\nError copying %s: %s\n", src, str_error(rc)); 436 return rc;438 return -1; 437 439 } 438 440 … … 442 444 if (buff) 443 445 free(buff); 444 return rc; 446 if (rc != EOK) { 447 return -1; 448 } else { 449 return 0; 450 } 445 451 } 446 452 … … 473 479 int force = 0, interactive = 0; 474 480 int c, opt_ind; 475 int 64_tret;481 int ret; 476 482 477 483 con = console_init(stdin, stdout);
Note:
See TracChangeset
for help on using the changeset viewer.