Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d8ef374 in mainline


Ignore:
Timestamp:
2009-10-15T18:06:32Z (11 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
7c7a3209
Parents:
622cdbe
Message:

bdsh should inherit the current working directory rather than setting "/"
unconditionally.

Location:
uspace/app/bdsh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/scli.c

    r622cdbe rd8ef374  
    6161        usr->line = (char *) NULL;
    6262        usr->name = "root";
    63         usr->home = "/";
    6463        usr->cwd = (char *) NULL;
    6564        usr->prompt = (char *) NULL;
    66         chdir(usr->home);
    6765        usr->lasterr = 0;
    6866        return (int) cli_set_prompt(usr);
  • uspace/app/bdsh/scli.h

    r622cdbe rd8ef374  
    77typedef struct {
    88        char *name;
    9         char *home;
    109        char *line;
    1110        char *cwd;
Note: See TracChangeset for help on using the changeset viewer.