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]

symlink problem


Hi, all

I'll appreciate if you give me advises.

I my cygwin, ready-made symlink files, which contain
'!<symlink>filename'
sentence, cannot be executed.
The cygwin is as installed by using setup.exe.2.510.2.2 for All Users.
Default Text file Type is Unix/binary.

For example, the cygwin prompts like below.
('gwak' works well, of course. )


$ awk /usr/bin/sh: /usr/bin/awk: No such file or directory

$ file /usr/bin/awk.exe
/usr/bin/awk.exe: Assembler source

$ strace bash /usr/bin/awk.exe

  33  179256 [main] bash 6260 open: open (/usr/bin/awk.exe, 0x0)
  34  179290 [main] bash 6260 normalize_posix_path: src /usr/bin/awk.exe
  32  179322 [main] bash 6260 normalize_posix_path: /usr/bin/awk.exe
= normalize_posix_path (/usr/bin/awk.exe)
  34  179356 [main] bash 6260 mount_info::conv_to_win32_path:
conv_to_win32_path (/usr/bin/awk.exe)
  35  179391 [main] bash 6260 set_flags: flags: binary (0x2)
  32  179423 [main] bash 6260 mount_info::conv_to_win32_path:
src_path /usr/bin/awk.exe, dst D:\cygwin\bin\awk.exe, flags 0xA, rc 0
  88  179511 [main] bash 6260 symlink_info::check: not a symlink
  36  179547 [main] bash 6260 symlink_info::check: 0 = symlink.check
(D:\cygwin\bin\awk.exe, 0x22C2E0) (0xA)
  35  179582 [main] bash 6260 path_conv::check: this->path(D:\cygwin\bin\awk
.exe), has_acls(1)
  36  179618 [main] bash 6260 build_fh_pc: fh 0x61165E2C
  38  179656 [main] bash 6260 fhandler_base::open:
(D:\cygwin\bin\awk.exe, 0x100000)
 641  180297 [main] bash 6260 fhandler_base::set_flags: flags
0x100000, supplied_bin 0x10000
  42  180339 [main] bash 6260 fhandler_base::set_flags: filemode set to binary
  34  180373 [main] bash 6260 fhandler_base::open: 0 = NtCreateFile
(0x5A0, 80100000, D:\cygwin\bin\awk.exe, io, NULL, 0, 7, 1, 20, NULL,
0)
  36  180409 [main] bash 6260 fhandler_base::open: 1 =
fhandler_base::open (D:\cygwin\bin\awk.exe, 0x100000)
  34  180443 [main] bash 6260 fhandler_base::open_fs: 1 =
fhandler_disk_file::open (D:\cygwin\bin\awk.exe, 0x0)
  33  180476 [main] bash 6260 open: 3 = open (/usr/bin/awk.exe, 0x0)
 313  180789 [main] bash 6260 isatty: 0 = isatty (3)
  33  180822 [main] bash 6260 fhandler_base::lseek: lseek
(/usr/bin/awk.exe, 0, 1)
  35  180857 [main] bash 6260 fhandler_base::lseek: setting file
pointer to 0 (high), 0 (low)
  43  180900 [main] bash 6260 lseek64: 0 = lseek (3, 0, 1)
  36  180936 [main] bash 6260 sig_send: sendsig 0x6B0, pid 6260,
signal -34, its_me 1
  38  180974 [main] bash 6260 sig_send: wakeup 0x59C
  38  181012 [main] bash 6260 sig_send: Waiting for pack.wakeup 0x59C


Thanks, Koichi

--
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]