Changeset 4cc0c9ee in mainline for uspace/app/bdsh/cmds
- Timestamp:
- 2009-01-22T14:22:12Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf226890
- Parents:
- fc11b8a
- Location:
- uspace/app/bdsh/cmds/modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
rfc11b8a r4cc0c9ee 94 94 /* Its a good idea to allocate path, plus we (may) need a copy of 95 95 * path to tokenize if parents are specified */ 96 if (NULL == (tmp = cli_strdup(path))) {96 if (NULL == (tmp = strdup(path))) { 97 97 cli_error(CL_ENOMEM, "%s: path too big?", cmdname); 98 98 return 1; … … 129 129 130 130 /* TODO: Canonify the path prior to tokenizing it, see below */ 131 dirs[i] = cli_strtok(tmp, "/");131 dirs[i] = strtok(tmp, "/"); 132 132 while (dirs[i] && i < 255) 133 dirs[++i] = cli_strtok(NULL, "/");133 dirs[++i] = strtok(NULL, "/"); 134 134 135 135 if (NULL == dirs[0]) -
uspace/app/bdsh/cmds/modules/touch/touch.c
rfc11b8a r4cc0c9ee 38 38 #include <dirent.h> 39 39 #include <sys/types.h> 40 #include <string.h> 40 41 41 42 #include "config.h" … … 80 81 81 82 for (i = 1; i < argc; i ++) { 82 buff = cli_strdup(argv[i]);83 buff = strdup(argv[i]); 83 84 dirp = opendir(buff); 84 85 if (dirp) {
Note:
See TracChangeset
for help on using the changeset viewer.