Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: OpenSSH: Dev

How to set an attribute for a link?

 

 

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded


anatol.pomozov at gmail

Apr 9, 2012, 1:57 PM

Post #1 of 1 (145 views)
Permalink
How to set an attribute for a link?

Hi,

I am working on fuse4x (fuse for macosx) and sshfs. And I discovered a
bug with sshfs when copying a link over sshfs is failed. It happens
because sshfs tries to invoke SETSTAT on a link when target is not
copied yet. I checked sshfs sources and found that it uses
SSH_FXP_SETSTAT operation.
https://github.com/fuse4x/sshfs/blob/master/sshfs.c#L2287
SSH_FXP_SETSTAT sets attributes to target file but I need to set an
attribute to link itself. What I need is SSH_FXP_LSETSTAT.

I tried to search over web and did not find any mention of
SSH_FXP_LSETSTAT. Is there any official way to set an attribute for a
link? Is there any openssh specific extension for it or maybe some
workaround?

Here is another related bug reported against linux debian
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640038

Thanks for you help.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev [at] mindrot
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

OpenSSH dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.