aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 8a3c3ae35..68512799e 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -3185,7 +3185,8 @@ print_all_cwd(void)
3185 mnt = setmntent(bb_path_mtab_file, "r"); 3185 mnt = setmntent(bb_path_mtab_file, "r");
3186 if (mnt) { 3186 if (mnt) {
3187 while ((entry=getmntent(mnt)) != NULL) { 3187 while ((entry=getmntent(mnt)) != NULL) {
3188 if (get_drive_cwd(entry->mnt_fsname, buffer, PATH_MAX) != NULL) 3188 entry->mnt_dir[2] = '\0';
3189 if (get_drive_cwd(entry->mnt_dir, buffer, PATH_MAX) != NULL)
3189 out1fmt("%s\n", buffer); 3190 out1fmt("%s\n", buffer);
3190 } 3191 }
3191 endmntent(mnt); 3192 endmntent(mnt);