Path: utzoo!mnetor!tmsoft!dptcdc!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!BBN.COM!jjd From: jjd@BBN.COM (James J Dempsey) Newsgroups: gnu.bash.bug Subject: more on previous message about sockets Message-ID: <8907251414.AA11629@life.ai.mit.edu> Date: 25 Jul 89 14:04:48 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 16 Re: sockets completing as directories I guess I gave the wrong proposed solution in my previous message. Instead of checking that st_mode is S_IFDIR and not S_IFSOCK, it looks like you are supposed to mask st_mode with S_IFMT and then check to see if it is equal to S_IFDIR. A quick grep through the sources (for "S_IF") indicates that this mistake might also exist in execute_cmd.c in execute_simple_command(). --Jim Dempsey-- BBN Communications jjd@bbn.com (ARPA Internet) ..!{decvax, harvard, wjh12, linus}!bbn!jjd