delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/04/12/10:57:09

Message-Id: <199704121442.KAA10395@delorie.com>
From: Oberhumer Markus <k3040e4 AT c210 DOT edvz DOT uni-linz DOT ac DOT at>
Subject: ls patch
To: djgpp-workers AT delorie DOT com (djgpp-workers),
eliz AT is DOT elta DOT co DOT il (Eli Zaretskii)
Date: Sat, 12 Apr 1997 16:39:32 +0200 (METDST)
Return-Read-To: markus DOT oberhumer AT jk DOT uni-linz DOT ac DOT at
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019