head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1
	RELEASE_4_7_0:1.1
	RELEASE_4_6_2:1.1
	RELEASE_4_6_1:1.1
	RELEASE_4_6_0:1.1
	RELEASE_5_0_DP1:1.1
	RELEASE_4_5_0:1.1
	RELEASE_4_4_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2003.07.18.05.43.27;	author daichi;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.16.08.59.04;	author sanpei;	state Exp;
branches;
next	;


desc
@@


1.2
log
@update www/thumbnail_index: use `/bin/pwd -L` instead of `pwd`
  - When using NFS and symbolic link, and wanting not to show the real
    path in the output of thumbnail_index, "cwd=`pwd`" is not good.
    "cwd=`/bin/pwd -L'" seems better.

PR:		53128
Submitted by:	NAKAJI Hiroyuki <nakaji@@jp.freebsd.org>
@
text
@--- thumbnail_index.orig	Tue Aug 11 03:51:55 1998
+++ thumbnail_index	Tue Jun 10 13:04:55 2003
@@@@ -99,7 +99,7 @@@@
 subdir=.thumbnails
 nindexname=/tmp/tinind.$$
 stamp='This file produced by thumbnail_index - do not edit.'
-cwd=`pwd`
+cwd=`/bin/pwd -L`
 makefile=/tmp/timake.$$
 infoscript=/tmp/tiinsc.$$
 rm -f $nindexname $makefile $infoscript
@@@@ -248,7 +248,7 @@@@
 EOF
 			)
 		    fi
-		    kb=`ls -l "$file" | awk '{print int(($4+1023)/1024)}'`
+		    kb=`wc -c < "$file" | awk '{print int(($1+1023)/1024)}'`
 		    echo "<TD ALIGN=CENTER><TABLE><TR><TD ALIGN=CENTER><A HREF=\"$file\"><IMG BORDER=0 WIDTH=20 HEIGHT=22 SRC=\"$subdir/.file.gif\"></A></TD></TR><TR><TD ALIGN=CENTER><SMALL><A HREF=\"$file\">$file</A></SMALL></TD></TR><TR><TD ALIGN=CENTER><SMALL>${kb}K</SMALL></TD></TR></TABLE></TD>"
 		fi
 	    ;;
@


1.1
log
@use wc command for check file size.
slower but more portable than using ls
@
text
@d2 10
a11 1
+++ thumbnail_index	Sat Jun 16 17:56:31 2001
@

