HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9bcdb3
)
(Fexpand_file_name): Undo last change--too risky for now.
author
Richard M. Stallman
<rms@gnu.org>
Thu, 29 Apr 1993 13:17:56 +0000
(13:17 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Thu, 29 Apr 1993 13:17:56 +0000
(13:17 +0000)
src/fileio.c
patch
|
blob
|
blame
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index
6c74dcc
..
563726d
100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-847,7
+847,10
@@
See also the function `substitute-in-file-name'.")
{
/* Get rid of any slash at the end of newdir. */
int length = strlen (newdir);
- if (length > 1 && newdir[length - 1] == '/')
+ /* Adding `length > 1 &&' makes ~ expand into / when homedir
+ is the root dir. People disagree about whether that is right.
+ Anyway, we can't take the risk of this change now. */
+ if (newdir[length - 1] == '/')
{
unsigned char *temp = (unsigned char *) alloca (length);
bcopy (newdir, temp, length - 1);