This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Updated: textutils-2.0-2
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