projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76d20d8
)
(robust_getcwd): Prepend only one slash, not two.
author
Jim Meyering
<jim@meyering.net>
Sat, 11 Mar 2006 20:40:18 +0000
(20:40 +0000)
committer
Jim Meyering
<jim@meyering.net>
Sat, 11 Mar 2006 20:40:18 +0000
(20:40 +0000)
src/pwd.c
patch
|
blob
|
history
diff --git
a/src/pwd.c
b/src/pwd.c
index
9fd8515
..
3a7ff5a
100644
(file)
--- a/
src/pwd.c
+++ b/
src/pwd.c
@@
-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