cvs commit: ALFS/nALFS/src/handlers digest.c

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Tue Feb 24 21:40:14 PST 2004


kpfleming    04/02/24 22:40:14

  Modified:    nALFS/src/handlers digest.c
  Log:
  force digest type to lowercase
  
  Revision  Changes    Path
  1.3       +3 -0      ALFS/nALFS/src/handlers/digest.c
  
  Index: digest.c
  ===================================================================
  RCS file: /home/cvsroot/ALFS/nALFS/src/handlers/digest.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- digest.c	25 Feb 2004 05:03:43 -0000	1.2
  +++ digest.c	25 Feb 2004 05:40:14 -0000	1.3
  @@ -79,6 +79,7 @@
   			    const char * const value)
   {
   	struct digest_data *data = (struct digest_data *) element->handler_data;
  +	char *s;
   
   	switch (attr->private) {
   	case DIGEST_TYPE:
  @@ -87,6 +88,8 @@
   			return 1;
   		}
   		data->type = xstrdup(value);
  +	        for (s = data->type; *s; s++)
  +			*s = tolower(*s);
   		return 0;
   	default:
   		return 1;
  
  
  



More information about the alfs-log mailing list