delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/16/17:54:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Sat, 16 Jun 2001 17:54:29 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: Cygwin <cygwin AT sources DOT redhat DOT com>
Subject: Re: Updated: textutils-2.0-2
Message-ID: <20010616175429.A28300@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Cygwin <cygwin AT sources DOT redhat DOT com>
References: <054001c0f695$c22bbc20$3c5350d8 AT bluesguitar DOT org> <20010616151607 DOT A28047 AT redhat DOT com> <056301c0f69a$04b19fc0$3c5350d8 AT bluesguitar DOT org>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <056301c0f69a$04b19fc0$3c5350d8@bluesguitar.org>; from matts@bluesguitar.org on Sat, Jun 16, 2001 at 02:24:51PM -0500

On Sat, Jun 16, 2001 at 02:24:51PM -0500, Matthew Smith wrote:
>I would appreciate a patch for the changes you made to md5sum, and I
>will try to get your changes folded back into the source.

cgf

diff -pr textutils-2.0/src/md5sum.c /netrel/src/textutils-2.0-2/src/md5sum.c
*** textutils-2.0/src/md5sum.c	Mon May  3 13:55:37 1999
--- /netrel/src/textutils-2.0-2/src/md5sum.c	Sat Jun 16 13:21:59 2001
***************
*** 25,30 ****
--- 25,31 ----
  #include <getopt.h>
  #include <stdio.h>
  #include <sys/types.h>
+ #include <sys/fcntl.h>
  
  #include "md5.h"
  #include "getline.h"
*************** md5_check (const char *checkfile_name)
*** 312,317 ****
--- 313,321 ----
  	}
      }
  
+ #ifdef O_TEXT
+   setmode (fileno (checkfile_stream), O_TEXT);
+ #endif
    line_number = 0;
    line = NULL;
    line_chars_allocated = 0;

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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