On 04-12-2011 16:45, DJ Lucas wrote:
> On 12/04/2011 12:32 PM, Bruce Dubbs wrote:
>> To make a fix, we could do something like:
>>
>> certdate=$( date -d "${date}" +%Y%m%d 2>/dev/null )
>> if [ $? != 0 ]; then
>>     # skip it      with continue
>>     # or remove it with rm -f "${cert}"
>> fi
> Yes, assuming that this is the 2038 bug, a continue here would be much 
> better, not more complex logic elsewhere. Thank you for catching that Bruce.
>
> -- DJ Lucas
>
Hi, DJ and Bruce,

I am trying, but not sure yet.

Attached, you find the log files.

1. old-ca-certificates* are obtained with the old script:
...
  if [ $( date -d "${date}" +%Y%m%d ) -lt ${today} ]; then
     echo "${cert} is expired! Removing..."
     rm -f "${cert}"
  fi
done

2. dev-null-only-ca-certificates* are obtained with:
...
  certdate=$( date -d "${date}" +%Y%m%d 2>/dev/null )

  if [ $( date -d "${date}" +%Y%m%d ) -lt ${today} ]; then
     echo "${cert} is expired! Removing..."
     rm -f "${cert}"
  fi
done 2>/dev/null

3. not-eq-0-ca-certificates* are obtained with:
...
  certdate=$( date -d "${date}" +%Y%m%d 2>/dev/null )

  if [ $? != 0 ]; then
     continue
  else
     echo "${cert} is expired! Removing..."
     rm -f "${cert}"
  fi
done

4. eq-0-ca-certificates are obtained with:
...
  certdate=$( date -d "${date}" +%Y%m%d 2>/dev/null )

  if [ $? = 0 ]; then
     continue
  else
     echo "${cert} is expired! Removing..."
     rm -f "${cert}"
  fi
done

Anyway, even if I cannot solve a problem myself, I will be available to 
contribute or test.


-- 
[]s,
Fernando de Oliveira
Natal, RN, BRAZIL

Attachment: ca-certificates-2011.12.05.logs.tar.xz
Description: Binary data

-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to