Top «Prev(2006-08-14) Latest Next(2006-10-16)» Edit

pterjan's diary


2006-10-03

  FTP sucks

Don't worry I won't tell you stories about passive mode, firewalling issues... I will only show a very simple issue that make me think FTP design really sucks.

touch "b -> c"; touch c; ln -s "b -> c" a; ln -s c "a -> b"

We now have a symlink named a pointing to the file b -> c and one named a -> b pointing to the file c.

Now imagine this directory is accessible via FTP.

ftp> ls
200 PORT command successful
150 Connecting to port 50712
drwxrwxr-x    2 501      501          4096 Oct  3 10:16 .
drwxrwxr-x    4 501      501          4096 Oct  3 00:26 ..
lrwxrwxrwx    1 501      501             6 Oct  3 10:16 a -> b -> c
lrwxrwxrwx    1 501      501             1 Oct  3 10:16 a -> b -> c
-rw-rw-r--    1 501      501             0 Oct  3 10:16 b -> c
-rw-rw-r--    1 501      501             0 Oct  3 10:16 c
226-Options: -a -l 
226 6 matches total

There is no way to know if the symlink name is a or a -> b. Most clients will parse both as being a pointing to b -> c.

Update : actually I can think of one : using file size to get the length of the string but I think this is OS and maybe FS dependant...

Today's TSUKKOMI(Total: 2) [Add a TSUKKOMI]
  jkxbrzq eqhnvbf (2008-06-13 04:25)

ncgqev cbvudonhm rtkusfg gdbslqfhi qxzuwpnoj xbonzhc ibgr

  smrwjl yvaogiqe (2008-06-13 04:25)

pjdrovk aius ayuc vemjqgbuc iamfvytu ncdgi gycz http://www.stvxrobud.ejzg.com


2004|06|07|08|09|11|
2005|01|02|05|06|07|08|09|10|11|12|
2006|01|02|03|06|08|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|12|
2011|02|04|06|
2012|01|05|11|
2013|01|02|04|06|
2014|02|
2015|06|
2017|05|07|12|