HiddenStore option may be useful

This is a discussion on HiddenStore option may be useful within the OpenSSH Development forums, part of the Networking and Network Related category; I'm missing a HiddenStore option in OpenSSH, known from some ftp-server implementations like ProFTPd. Consider the following scenario: - ...


Go Back   Usenet Forums > Networking and Network Related > OpenSSH Development

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-14-2007
Thomas Blank
 
Posts: n/a
Default HiddenStore option may be useful

I'm missing a HiddenStore option in OpenSSH, known from some ftp-server
implementations like ProFTPd.

Consider the following scenario:
- A process PROCA is frequently polling the directory for a file called
myfile.txt
- Someone transfers this file via sftp or scp to the directory
- While transfer is going on and the file is not completely written,
PROCA reads in the file and removes is
-> Corrupt data is seen by PROCA

Knowing this problem you have to solutions:
1. PROCA must check if myfile.txt is changing (filesize, mtime...) and
wait until it does not change any more
2. sftp and scp use a HiddenStore by writing the file with a unique
filename (eg. .myfile.txt) and renaming it at the end of the transfer
(mv .myfile.txt myfile.txt)

What do you think about this?

Thomas
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/lis...enssh-unix-dev
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0