1832906 Members
2875 Online
110048 Solutions
New Discussion

Re: Diff in crypt.h

 
H.Merijn Brand (procura
Honored Contributor

Diff in crypt.h

I've got two HP-UX 11.00 systems, a L1000 (l1) and a A500 (a5), both factory preinstalled with a 64bit kernel. I've kept them up to date with the latest patches over time, and both are currently on December 2001 ExtSw level. Can anyone explain *why* /usr/include/crypt.h differs on both systems?


l1:/usr/include 161 > diff crypt.h /a5/usr/include/crypt.h
5,13d4
< #if defined(__STDC__) || defined(__cplusplus)
< extern char *crypt(char *, char *);
< extern void setkey(char *);
< extern void encrypt(char *, int);
< #else
< extern char *crypt();
< extern void setkey();
< extern void encrypt();
< #endif
Exit 1
l1:/usr/include 162 > ll !*
ll crypt.h /a5/usr/include/crypt.h
9107 -r--r--r-- 1 bin bin 935 Oct 27 1997 /a5/usr/include/crypt.h
9083 -rw-rw-rw- 1 bin bin 1159 Jan 13 2000 crypt.h
l1:/usr/include 163 >


a5:/var/adm/sw 105 # find . -type f | xargs fgrep /crypt.h
./products/ProgSupport/C-INC/INFO:path /usr/include/crypt.h
a5:/var/adm/sw 106 #

There is no patch applied on either side that updated crypt.h
The a5 is newer
Both systems were delivered factory installed

As always, it might be my own doings long long time ago, but I for sure cannot remember
Enjoy, Have FUN! H.Merijn
7 REPLIES 7
harry d brown jr
Honored Contributor

Re: Diff in crypt.h

procura,

Interesting to say the least! That's a good reason never to "accept" a preinstalled OS, and why I reinstall it myself.

My N and A-class servers have the same crypt.h file. see attachment

live free or die
harry
Live Free or Die
S.K. Chan
Honored Contributor

Re: Diff in crypt.h

a) 9107 -r--r--r-- 1 bin bin 935 Oct 27 1997 /a5/usr/include/crypt.h
b) 9083 -rw-rw-rw- 1 bin bin 1159 Jan 13 2000 crypt.h

b is 666, would someone be messing with it ? I agree, there is no patch that would update/change crypt.h, and it seems logical to conclude that the difference in crypt.h can only be due to OS difference, maybe architecture or even firmware level, other than that .. can't think of any ..
harry d brown jr
Honored Contributor

Re: Diff in crypt.h

Could it be another product you installed that modified the file? What is the file dates and sizes on both?

Mine is

[root]pbctst: ls -l crypt.h
-r--r--r-- 1 bin bin 932 Nov 14 2000 crypt.h


live free or die
harry
Live Free or Die
H.Merijn Brand (procura
Honored Contributor

Re: Diff in crypt.h

Harry, even yours differs with mine:

a5:/tmp 129 > diff crypt.h /usr/include/crypt.h
1c1
< /* @(#) $Revision: ../hdr/crypt.h@@/main/i80/1 $ */
---
> /* @(#) $Revision: ../hdr/crypt.h@@/main/r11ros/0 $ */
a5:/tmp 130 > ll /[al]?/usr/include/crypt.h
9107 -r--r--r-- 1 bin bin 935 Oct 27 1997 /a5/usr/include/crypt.h
9083 -rw-rw-rw- 1 bin bin 1159 Jan 13 2000 /l1/usr/include/crypt.h
a5:/tmp 131 >

There's of course the possibility that I fiddled with it building all my attempts of gcc in all different configurations, but over two years ago? I guess not.
Enjoy, Have FUN! H.Merijn
Darrell Allen
Honored Contributor

Re: Diff in crypt.h

For what it's worth, crypt.h on my N and K are the same as Harry's except for the "what" info. Mine have:
/* @(#) $Revision: ../hdr/crypt.h@@/main/r11ros/0 $ */

ll shows:
-r--r--r-- 1 bin bin 935 Oct 27 1997 /usr/include/crypt.h

It appears to have been installed with the ProgSupport product and not changed by any patches.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)
harry d brown jr
Honored Contributor

Re: Diff in crypt.h

Mine are the same because I built my A and N from scratch using the same media.

live free or die
harry
Live Free or Die
H.Merijn Brand (procura
Honored Contributor

Re: Diff in crypt.h

FWIW I copied the small version - which you all seem to have - over the long version.

I suspect Apache, but just like to go on with the routine day.

Thanks (not looking deeper)
Enjoy, Have FUN! H.Merijn