diff options
author | Jim Meyering <jim@meyering.net> | 2006-03-11 20:40:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-03-11 20:40:18 +0000 |
commit | 28bffbc6fe4630b442a747e5a43934459d9e9668 (patch) | |
tree | 561e04aac2a09c3d0f8c58292dc57563e59c36d2 | |
parent | 76d20d82dd1ee35c7d2ad49fb8250ac4eecde43b (diff) | |
download | coreutils-28bffbc6fe4630b442a747e5a43934459d9e9668.tar.xz |
(robust_getcwd): Prepend only one slash, not two.
-rw-r--r-- | src/pwd.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -279,8 +279,9 @@ robust_getcwd (struct file_name *file_name) find_dir_entry (&dot_sb, file_name, height++); } + /* See if a leading slash is needed; file_name_prepend adds one. */ if (file_name->start[0] == '\0') - file_name_prepend (file_name, "/", 1); + file_name_prepend (file_name, "", 0); } int |