This is the mail archive of the cygwin mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
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 <DIR> . 08/20/2007 05:29p <DIR> .. 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* --
Attachment:
bar.tar.gz
Description: Binary data
-- 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/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |