ports/53128: www/thumbnail_index/files/patch-ab change
NAKAJI Hiroyuki
nakaji at jp.freebsd.org
Tue Jun 10 04:30:18 UTC 2003
>Number: 53128
>Category: ports
>Synopsis: www/thumbnail_index/files/patch-ab change
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Jun 09 21:30:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator: NAKAJI Hiroyuki
>Release: FreeBSD 5.1-BETA i386
>Organization:
>Environment:
System: FreeBSD boggy.acest.tutrp.tut.ac.jp 5.1-BETA FreeBSD 5.1-BETA #98: Tue May 13 18:44:54 JST 2003 root at boggy.acest.tutrp.tut.ac.jp:/usr/obj/usr/src/sys/NAKAJI i386
>Description:
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.
For example, I am using my ~/public_html/ as a symbolic link to the real
web server's /home/nakaji/public_html via amd:
$ ls -l ~/public_html
lrwxr-xr-x 1 nakaji staff 37 Jul 19 2001 /home/nakaji/public_html@ -> /net/tamy/usr/home/nakaji/public_html
And `pwd` shows it "/.amd_mnt/tamy/host/usr/home/nakaji/public_html". It
is normal behavior, I know, but I don't want this long ugly path to be
shown to the world. I hope it should be "/home/nakaji/public_html".
I tested some "pwd".
$ sh -c 'pwd'
/.amd_mnt/tamy/host/usr/home/nakaji/public_html/tmp/bigNEWS
$ sh -c '/bin/pwd'
/.amd_mnt/tamy/host/usr/home/nakaji/public_html/tmp/bigNEWS
$ sh -c 'pwd -L'
/.amd_mnt/tamy/host/usr/home/nakaji/public_html/tmp/bigNEWS
$ sh -c 'pwd -P'
/.amd_mnt/tamy/host/usr/home/nakaji/public_html/tmp/bigNEWS
$ sh -c '/bin/pwd -L'
/home/nakaji/public_html/tmp/bigNEWS
>How-To-Repeat:
>Fix:
Index: files/patch-ab
===================================================================
RCS file: /home/ncvs/ports/www/thumbnail_index/files/patch-ab,v
retrieving revision 1.1
diff -u -r1.1 patch-ab
--- files/patch-ab 16 Jun 2001 08:59:04 -0000 1.1
+++ files/patch-ab 10 Jun 2003 04:07:14 -0000
@@ -1,5 +1,14 @@
--- thumbnail_index.orig Tue Aug 11 03:51:55 1998
-+++ thumbnail_index Sat Jun 16 17:56:31 2001
++++ 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
)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list