Opened 18 years ago

Last modified 18 years ago

#1150 closed Bug report

Setting directory's sticky bit sends wrong command to server

Reported by: vogelsp Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: vogelsp, Tim Kosse
Component version: Operating system type:
Operating system version:

Description

When setting a directory's sticky bit, I think the
wrong command is sent to the server.

Reproduce steps:


Right-click a directory on the remote site, choose
"File attributes...", enter 1777 as the numeric value,
click OK. The remote site in my case is some Linux box
(I don't have more details here, I'm sorry).

The message log now shows:


Command: SITE CHMOD 49777
/public/sites/www.someserver.nl/aaa
Trace: FtpControlSocket.cpp(823): OnReceive(0)
OpMode=8192 OpState=-1 caller=0x010819b4
Response: 200 SITE CHMOD command ok.
Trace: FtpControlSocket.cpp(3988): ResetOperation(1)
OpMode=8192 OpState=-1 caller=0x010819b4
Trace: FtpControlSocket.cpp(1213):
List(FALSE,0,"/public/sites/www.someserver.nl/","",0)
OpMode=0 OpState=-1 caller=0x010819b4
Status: Retrieving directory listing...
Command: TYPE A
Trace: FtpControlSocket.cpp(823): OnReceive(0)
OpMode=4 OpState=8 caller=0x010819b4
Response: 200 Switching to ASCII mode.
Trace: FtpControlSocket.cpp(1213):
List(FALSE,0,"","",0) OpMode=4 OpState=8
caller=0x010819b4
Command: PASV
Trace: FtpControlSocket.cpp(823): OnReceive(0)
OpMode=4 OpState=7 caller=0x010819b4
Response: 227 Entering Passive Mode (81,4,97,176,245,244)
Trace: FtpControlSocket.cpp(1213):
List(FALSE,0,"","",0) OpMode=4 OpState=7
caller=0x010819b4
Trace: TransferSocket.cpp(540): SetActive()
caller=0x01162b2c
Command: LIST -a
Trace: TransferSocket.cpp(428): OnConnect(0)
caller=0x01162b2c
Trace: FtpControlSocket.cpp(823): OnReceive(0)
OpMode=4 OpState=9 caller=0x010819b4
Response: 150 Here comes the directory listing.
Trace: FtpControlSocket.cpp(1213):
List(FALSE,0,"","",0) OpMode=4 OpState=9
caller=0x010819b4
Trace: TransferSocket.cpp(500): OnClose(0)
caller=0x01162b2c
Trace: TransferSocket.cpp(1107): Close()
caller=0x01162b2c
Trace: TransferSocket.cpp(1107): Close()
caller=0x01162b2c
Trace: FtpControlSocket.cpp(1969): TransferEnd(4)
OpMode=4 OpState=10 caller=0x010819b4
Trace: FtpControlSocket.cpp(1213): List(TRUE,0,"","",0)

OpMode=4 OpState=10 caller=0x010819b4

Trace: drwxr-xr-x 9 48171 48258 624 Aug
14 16:38 .
Trace: drwxr-xr-x 3 48171 48258 88 Apr
20 12:40 ..
Trace: -rw-r--r-- 1 48171 48258 1348 Aug
14 16:37 CContact.php
Trace: -rw-r--r-- 1 48171 48258 693 Aug
14 16:37 CCounter.php
Trace: -rw-r--r-- 1 48171 48258 936 Aug
14 16:37 CDatabase.php
Trace: -rw-r--r-- 1 48171 48258 15106 Aug
14 16:37 CGallery.php
Trace: -rw-r--r-- 1 48171 48258 6914 Aug
14 16:37 CGuestbook.php
Trace: -rw-r--r-- 1 48171 48258 353 Aug
14 16:37 CLinks.php
Trace: -rw-r--r-- 1 48171 48258 4082 Aug
14 16:37 CMovieGallery.php
Trace: -rw-r--r-- 1 48171 48258 4594 Aug
14 16:37 CNews.php
Trace: -rw-r--r-- 1 48171 48258 763 Aug
14 16:37 CUtils.php
Trace: d------r-- 2 48171 48258 48 Aug
14 16:38 aaa
Trace: drwxr-xr-t 3 48171 48258 104 Aug
14 16:03 archive
Trace: drwxr-xr-x 2 48171 48258 80 Aug
12 12:03 css
Trace: drwxr-xr-x 2 48171 48258 344 Aug
12 12:10 img
Trace: -rw-r--r-- 1 48171 48258 3653 Aug
14 16:37 index.php
Trace: drwxr-xr-x 2 48171 48258 72 Aug
05 09:44 js
Trace: drwxr-xr-x 2 48171 48258 72 Aug
12 13:38 movie_archive
Trace: drwxr-xr-x 13 48171 48258 344 Aug
14 16:28 photo_archive
Trace: -rw-r--r-- 1 48171 48258 176 Aug
14 16:37 phpinfo.php
Trace: -rw-r--r-- 1 48171 48258 1149 Aug
14 16:37 watermark.php
Trace: TransferSocket.cpp(96): ~CTransferSocket()
caller=0x01162b2c
Trace: TransferSocket.cpp(1107): Close()
caller=0x01162b2c
Trace: FtpControlSocket.cpp(823): OnReceive(0)
OpMode=4 OpState=10 caller=0x010819b4
Response: 226 Directory send OK.
Trace: FtpControlSocket.cpp(1213):
List(FALSE,0,"","",0) OpMode=4 OpState=10
caller=0x010819b4
Status: Directory listing successful
Trace: FtpControlSocket.cpp(3988): ResetOperation(1)
OpMode=4 OpState=10 caller=0x010819b4

Note the command on the first line in the message log,
it states: "SITE CHMOD 49777
/public/sites/www.someserver.nl/aaa", while I think it
should be "SITE CHMOD 1777
/public/sites/www.someserver.nl/aaa".

Note that I replaced my actual server with "someserver".

Kind regards,

Pascal

Change History (1)

comment:1 by Tim Kosse, 18 years ago

Thanks for reporting, will be fixed in the next version.

Note: See TracTickets for help on using tickets.