[9fans] ftpfs ahould not expose . and .. directories

2008-04-28 Thread eekee57
Hi all. I had a problem trying to use dircp with ftpfs the other day, and made a little patch to ftpfs to fix it. The Problem: Many operating systems expose the psuedo-directories . and .. in their directory structure, and understandably many FTP servers running on those operating systems pass

Re: [9fans] ftpfs ahould not expose . and .. directories

2008-04-28 Thread Juan Céspedes
On Mon, Apr 28, 2008 at 12:19 PM, Pietro Gagliardi [EMAIL PROTECTED] wrote: You do realize using strncmp means that a filename like .abc or ..whatever will also get hidden? False. He used strncmp(., field[8], 2), which matches the first 2 bytes, i.e., '.' and '\0'. But I agree with you:

Re: [9fans] ftpfs ahould not expose . and .. directories

2008-04-28 Thread Charles Forsyth
similarly, it is usually if(p != nil) ... not if(!p) ha ha. sorry i meant if(p == nil) not if(!p)