The Samba-Bugzilla – Attachment 4033 Details for
Bug 5615
iconv conversion not applied to symlinks
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A bash shell script to test rsync's --iconv option on symlinks
rsync-iconv-test.sh (text/plain), 894 bytes, created by
Per Ångström
on 2009-03-29 02:58:26 UTC
(
hide
)
Description:
A bash shell script to test rsync's --iconv option on symlinks
Filename:
MIME Type:
Creator:
Per Ångström
Created:
2009-03-29 02:58:26 UTC
Size:
894 bytes
patch
obsolete
>#!/bin/sh -v >if [ -z "$SECONDARY_ENCODING" ]; then SECONDARY_ENCODING=iso885915; fi > >TMPDIR=/tmp/rsync-iconv-test-tmp-dir >mkdir -p ${TMPDIR}/utf8 >if [ "$?" -ne "0" ]; then echo "mkdir FAILURE"; exit 1; fi > >cd ${TMPDIR}/utf8 > ># make a test file with a funny name >FILE_NAME=bbbÃÃÃåäöéèñbbb.txt >echo "Sample text" > $FILE_NAME > ># make a symbolic link that will need iconv treatment >ln -sf $FILE_NAME symlink > >ls -l >ls -lL > >RSYNC_DESTINATION_DIRECTORY=rsync_dest/${SECONDARY_ENCODING} >mkdir -p ../${RSYNC_DESTINATION_DIRECTORY} >rsync ./ ../${RSYNC_DESTINATION_DIRECTORY}/ -a --iconv utf8,${SECONDARY_ENCODING} >if [ "$?" -ne "0" ]; then echo "RSYNC FAILURE"; exit 1; fi > >ls -l ../${RSYNC_DESTINATION_DIRECTORY} >ls -lL ../${RSYNC_DESTINATION_DIRECTORY} > >diff ../utf8/symlink ../${RSYNC_DESTINATION_DIRECTORY}/symlink >if [ "$?" -ne "0" ]; then echo "FAIL"; exit 1; fi > >echo "SUCCESS" >exit 0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 5615
:
3410
| 4033