Mail Archives: djgpp-workers/1997/04/12/10:57:09
This patch fixes a problem in ls when displaying the files
in a directory that is exactly 1 character long.
*** gnu\filutil3.13\src\ls.org Sat Apr 5 20:55:38 1997
--- gnu\filutil3.13\src\ls.c Sat Apr 12 14:56:26 1997
***************
*** 2794,2799 ****
#ifdef MSDOS
/* "d:" does NOT mean "d:/" */
! if (dirnamep > dirname + 1
! && (dirname[1] != ':' || dirname[2] != '\0'))
#endif
/* Add '/' if `dirname' doesn't already end with it. */
--- 2794,2798 ----
#ifdef MSDOS
/* "d:" does NOT mean "d:/" */
! if (dirname[0] == '\0' || dirname[1] != ':' || dirname[2] != '\0')
#endif
/* Add '/' if `dirname' doesn't already end with it. */
- Raw text -