bug-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Patch to fix bad version comparison in RPMPackageCheck()


From: rader
Subject: Re: Patch to fix bad version comparison in RPMPackageCheck()
Date: Mon, 28 Feb 2005 14:20:51 -0600

 > Have you found a case where strcmp() returns something other than that
 > on one of your machines?

strcmp("1",x) for (almost all?) values of x>2 on RH7.3

and, like i said before, strcmp("42","44") is -2 on RH7.3!

couldn't find any in FC3 after about 150,000 tries.

steve 
- - - 
systems & network manager
high energy physics
university of wisconsin

ginseng(rader): cat /etc/redhat-release
Red Hat Linux release 7.3 (Valhalla) UW-HEP $Revision 1.9$

ginseng(rader): cat strcmp.c 
main (char *argc, char **argv) {
  int i;
  i = strcmp(argv[1],argv[2]);
  printf("strcmp %s %s is %d\n",argv[1],argv[2],i);
}

ginseng(rader): cc -o strcmp strcmp.c 

ginseng(rader): ./strcmp 42 44
strcmp 42 44 is -2





reply via email to

[Prev in Thread] Current Thread [Next in Thread]