[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/fileio.c
From: |
Kenichi Handa |
Subject: |
[Emacs-diffs] Changes to emacs/src/fileio.c |
Date: |
Thu, 28 Feb 2002 20:38:37 -0500 |
Index: emacs/src/fileio.c
diff -c emacs/src/fileio.c:1.438 emacs/src/fileio.c:1.439
*** emacs/src/fileio.c:1.438 Fri Feb 8 14:16:31 2002
--- emacs/src/fileio.c Tue Feb 26 13:41:36 2002
***************
*** 2069,2075 ****
&& *s != ':'
#endif /* VMS */
); s++);
! if (s > p + 1)
{
o = (unsigned char *) alloca (s - p + 1);
bcopy ((char *) p, o, s - p);
--- 2069,2075 ----
&& *s != ':'
#endif /* VMS */
); s++);
! if (p[0] == '~' && s > p + 1) /* we've got "/~something/" */
{
o = (unsigned char *) alloca (s - p + 1);
bcopy ((char *) p, o, s - p);
***************
*** 2080,2086 ****
/* If we have ~/ or ~user and `user' exists, discard
everything up to ~. But if `user' does not exist, leave
~user alone, it might be a literal file name. */
! if (s == p + 1 || pw)
{
nm = p;
substituted = 1;
--- 2080,2086 ----
/* If we have ~/ or ~user and `user' exists, discard
everything up to ~. But if `user' does not exist, leave
~user alone, it might be a literal file name. */
! if (IS_DIRECTORY_SEP (p[0]) || s == p + 1 || pw)
{
nm = p;
substituted = 1;