Changeset b7be230 in mainline for uspace/app/bdsh/cmds/modules/cp/cp.c
- Timestamp:
- 2009-01-22T17:11:54Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bffd91f
- Parents:
- bf226890
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
rbf226890 rb7be230 35 35 #include <string.h> 36 36 #include <fcntl.h> 37 #include <assert.h>38 37 #include "config.h" 39 38 #include "util.h" … … 125 124 res -= bytes; 126 125 } while (res > 0); 127 assert(res == 0); 126 127 /* TODO: re-insert assert() once this is stand alone, 128 * removed as abort() exits the entire shell 129 */ 130 if (res != 0) { 131 printf("\n%d more bytes than actually exist were copied\n", res); 132 goto err; 133 } 128 134 } 129 135 130 136 if (bytes < 0) { 131 137 err: 132 printf(" Error copying %s, (%d)\n", src, bytes);138 printf("\nError copying %s, (%d)\n", src, bytes); 133 139 copied = bytes; 134 140 }
Note:
See TracChangeset
for help on using the changeset viewer.