DST Daylight Savings and statically linked

From: Seth Rothenberg (SROTHENB@emerginghealthit.com)
Date: Tue Feb 13 2007 - 13:03:53 EST


Greetings,
We patched our servers - Solaris 2.6, Solaris 8, Solaris 9.....
and we confidently ran a great Perl Script (whole thing at end)

$t= 1173596400;
print ctime($t-1); # 1:59:59
print ctime($t); # 3 am

and it worked! i.e., on patched systems, it reports 3 am.

But it just dawned on me that I have 3rd-party commercial s/w for
which
I don't know if it is dynamically linked or statically linked.

(you and I know that few things really must be statically linked,
but the vendor may not know that :-)

Is my mental model correct over here? Am I correct to be a bit
concerned?
Can I use a tool like ldd or truss to see whether the program
is using dynamicly linked libraries, or statically linked?

The product is way past EOL (unfortunately, the vendor's new product is
not stable yet :-),
so I don't expect to get a lot of help from the vendor.

My main concern now is the stuff on Solaris 8,
as that's the stuff that displays time in logs, etc.

Thanks
Seth

PS complete perl script - let me know if you need that in C

#!/usr/bin/perl -w

require "ctime.pl";

$t= 1173596400;
print ctime($t-1);
print ctime($t);

$newtime = ctime($t);
if ($newtime !~ /3:00:00/)
{
      print "Danger, Will Robinson! Danger!\n";
}
else
{
       print "Server is ready for DST in 2007\n";
}
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:37 EDT