uzip extfs sanity patch

Standa Opichal opichals at seznam.cz
Wed Nov 20 13:18:05 UTC 2002


Hi!

Here is a small patch I needed to display one particular archive 
contents without errors. If it is convenient to neglect errors like weird 
dates then it can be usefull. Maybe even the other archive scripts should 
have such checks? What do you think?

regards

STan


$ cvs -z3 diff uzip 
Index: uzip
===================================================================
RCS file: /cvs/gnome/mc/vfs/extfs/uzip,v
retrieving revision 1.3
diff -r1.3 uzip
284c284
<       $mon = (qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/)[$mon-1];
---
>       $mon = (qw/Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec/)[($mon<1?1:$mon>12?12:$mon)-1];





More information about the mc-devel mailing list