diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-11 16:36:03 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-05-11 16:36:03 +0000 |
commit | cbdc734b320c0cde4ca3b25d15add9c6153eb7df (patch) | |
tree | 962c36aed0e52cd00f6220e5ac542356212b89c8 /shell | |
parent | 61da5d50af78d070bcae8ac73792f7b5a80c5431 (diff) | |
download | busybox-w32-cbdc734b320c0cde4ca3b25d15add9c6153eb7df.tar.gz busybox-w32-cbdc734b320c0cde4ca3b25d15add9c6153eb7df.tar.bz2 busybox-w32-cbdc734b320c0cde4ca3b25d15add9c6153eb7df.zip |
Use xgetcwd
git-svn-id: svn://busybox.net/trunk/busybox@2612 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/hush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c index d0b30ebac..abc8f6e60 100644 --- a/shell/hush.c +++ b/shell/hush.c | |||
@@ -428,7 +428,7 @@ static int builtin_cd(struct child_prog *child) | |||
428 | printf("cd: %s: %s\n", newdir, strerror(errno)); | 428 | printf("cd: %s: %s\n", newdir, strerror(errno)); |
429 | return EXIT_FAILURE; | 429 | return EXIT_FAILURE; |
430 | } | 430 | } |
431 | getcwd(cwd, sizeof(char)*MAX_LINE); | 431 | cwd = xgetcwd(cwd); |
432 | return EXIT_SUCCESS; | 432 | return EXIT_SUCCESS; |
433 | } | 433 | } |
434 | 434 | ||
@@ -567,7 +567,7 @@ static int builtin_jobs(struct child_prog *child) | |||
567 | /* built-in 'pwd' handler */ | 567 | /* built-in 'pwd' handler */ |
568 | static int builtin_pwd(struct child_prog *dummy) | 568 | static int builtin_pwd(struct child_prog *dummy) |
569 | { | 569 | { |
570 | getcwd(cwd, MAX_LINE); | 570 | cwd = xgetcwd(cwd); |
571 | puts(cwd); | 571 | puts(cwd); |
572 | return EXIT_SUCCESS; | 572 | return EXIT_SUCCESS; |
573 | } | 573 | } |