hi there,

today i wanted to copy the pictures from my camera sd card
to my openbsd notebook.  after mounting the card i noticed
that there are files with future dates...

amaaq> ls -la /etc/localtime
lrwxr-xr-x  1 root  wheel  36 May 21 12:23 /etc/localtime@ -> 
/usr/share/zoneinfo/Pacific/Auckland
amaaq> ls -la
-rw-rw-rw-  1 f  wheel    906429 May 23 05:36 dscn9996.jpg
-rw-rw-rw-  1 f  wheel    877491 May 23 05:37 dscn9997.jpg
-rw-rw-rw-  1 f  wheel    915682 May 23 05:38 dscn9998.jpg
amaaq> TZ= ls -la
-rw-rw-rw-  1 f  wheel    906429 May 22 17:36 dscn9996.jpg
-rw-rw-rw-  1 f  wheel    877491 May 22 17:37 dscn9997.jpg
-rw-rw-rw-  1 f  wheel    915682 May 22 17:38 dscn9998.jpg
amaaq> echo $TZ
amaaq>

ls prints the correct date/time when explicitly clearing $TZ.
but there is nothing in it in the first place...

i had different timezones before, but now i am in new zealand...
this has never happened before as far as a i can tell..
ls(1) says that TZ is used to print the dates but it never
occured to me that it would add $TZ hours to the file date,
that's why i am having filedates in the future, obivously,
that the files have correct dates on disk.

is this the accepted behaviour?
the mounts are ext2fs and msdos btw.
4.3-current as of may 19

-f
-- 
how much can i get away with and still go to heaven?

Reply via email to