X-Spam-Check-By: sourceware.org Message-Id: <200708202358.l7KNwl7b025934@tigris.pounder.sol.net> To: cygwin AT cygwin DOT com From: cygzw AT trodman DOT com (Tom Rodman) Reply-to: cygwin AT cygwin DOT com X-note: From should match addr u signed up w/, else post will not show for > 90 min (3/2005) Subject: symbolic link untar issue X-note: getting started: oPS1=$PS1 PS1="\w $ " cd; date;uname -a MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----- =_aaaaaaaaaa0" Content-ID: <25930 DOT 1187654209 DOT 0 AT tigris DOT pounder DOT sol DOT net> Date: Mon, 20 Aug 2007 18:58:46 -0500 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25930 DOT 1187654209 DOT 1 AT tigris DOT pounder DOT sol DOT net> These steps 'hide bash', so invoking bash again fails: /tmp $ uname -a CYGWIN_NT-5.0 argon 1.5.24(0.156/4/2) 2007-01-31 10:57 i686 Cygwin /tmp $ tar tvf bar.tar drwxrwxr-x staffuser1/XYZ_ES_STAFF 0 2007-08-20 17:29 ZZ/ lrwxrwxrwx staffuser1/XYZ_ES_STAFF 0 2007-08-20 17:29 ZZ/bash2 -> /bin/bash /tmp $ tar xpf bar.tar; tar xpf bar.tar #2nd untar does the damage /tmp $ ls -l /bin/bash ---------- 1 adm_usr1 None 0 Aug 20 18:03 /bin/bash /tmp $ ls -l /bin/bash.exe -rwxrwxrwx 1 Administrator Users 470528 May 1 21:22 /bin/bash.exe* /tmp $ bash -bash: /usr/bin/bash: Permission denied Notice the zero byte file '/bin/bash' w/o any perms; it causes subsequent invocations of bash to fail. It is the 2nd untar that does it. Here's what is in 'bar.tar' ( which is also attached ): /tmp/ZZ $ md5sum /tmp/bar.tar 0a3b22f3e6d00c68f7000b4fc1b80993 */tmp/bar.tar /tmp $ cd ZZ /tmp/ZZ $ cmd /c dir Volume in drive D has no label. Volume Serial Number is BC28-E542 Directory of d:\aut\cyg\tmp\ZZ 08/20/2007 05:29p . 08/20/2007 05:29p .. 08/20/2007 06:03p 108 bash2.lnk 1 File(s) 108 bytes 2 Dir(s) 544,944,128 bytes free /tmp/ZZ $ cmd /c type bash2.lnk|command od -Ad -c 0000000 L \0 \0 \0 001 024 002 \0 \0 \0 \0 \0 300 \0 \0 \0 0000016 \0 \0 \0 F \f \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000032 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 0000048 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 001 \0 \0 \0 0000064 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \t \0 / b 0000080 i n / b a s h 023 \0 d : \ a u t \ 0000096 c y g \ b i n \ b a s h 0000108 Is that an old style cygwin snybolic link? If so how do I identify all of them, so I might update them on my system? -- thanks, Tom Rodman -- Cleanup.., how to delete the zero byte '/bin/bash': /tmp/ZZ $ (cd /bin ; chmod 777 bash;cmd /c del bash; ls -l bash) -rwxrwxrwx 1 Administrator Users 470528 May 1 21:22 bash* -- ------- =_aaaaaaaaaa0 Content-Type: application/octet-stream; name="bar.tar.gz" Content-ID: <25930 DOT 1187654209 DOT 2 AT tigris DOT pounder DOT sol DOT net> Content-Transfer-Encoding: base64 H4sICH4aykYAA2Jhci50YXIA7dGxCsIwFIXhPEreoMlNm8widnOKU5bSdtHB Cq2+v6G6OjikIP7fci8hcA+clCpVmslCaPJ03rt1BnFufX9T1ngvtZUgRhlr 8650UzxZ9lju/ay1WsbrON+mj//i/tgdYhdPu7bdItdGUqqGfjlLyRuv/sMX /dfijNJSDZdpjVcw3J/3DwAAAAAAAAAAAAAAAOB3PQEV5yYlACgAAA== ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------- =_aaaaaaaaaa0--