On Mon, May 14, 2012 at 01:59:27PM +0200, Miklos Szeredi wrote:
> Louis-David Mitterrand <[email protected]> writes:
> 
> > On Mon, May 07, 2012 at 03:41:09PM +0200, Miklos Szeredi wrote:
> >> Louis-David Mitterrand <[email protected]> writes:
> >> 
> >> > Package: sshfs
> >> > Version: 2.3-1
> >> > Severity: normal
> >> >
> >> > Hi,
> >> >
> >> > When trying to save an attachement with mutt to a sshfs mounted
> >> > filesystem I always get this error:
> >> >
> >> >         fopen: File exists (errno = 17)
> >> >
> >> > If I try re-saving it mutt prompts me:
> >> >
> >> >         File exists, (o)verwrite, (a)ppend, or (c)ancel?
> >> >
> >> > And overwriting works.
> >> 
> >> Try "-oworkaround=rename" option.
> >
> > Same error.
> >
> >> If that doesn't work please start sshfs with debugging enabled
> >> (-odebug,sshfs_debug) and post the resulting log.
> >
> > Here is the ouput:
> >
> > [...]
> 
> Nothing to see there.  The "file exists" error comes from somewhere
> else.
> 
> Can you attach strace to the mutt process and post the result as well?
> 
>   strace -f -o /tmp/strace -p `pidof mutt`

Hi,

Please find the strace attached.
29445 select(1, [0], NULL, NULL, {589, 87552}) = 1 (in [0], left {455, 254252})
29445 read(0, "\r", 1)                  = 1
29445 rt_sigaction(SIGINT, {0x46b270, [], SA_RESTORER|SA_RESTART, 
0x7ff6fe7554f0}, NULL, 8) = 0
29445 access("/mnt/zenon/Invitation projo.jpg", F_OK) = -1 ENOENT (No such file 
or directory)
29445 write(1, "\33[4Ging...\33[K\33(B\33[m", 19) = 19
29445 lstat("/mnt/zenon/.mutt8ispZ2", 0x7fff75664b10) = -1 ENOENT (No such file 
or directory)
29445 mkdir("/mnt/zenon/.mutt8ispZ2", 0700) = 0
29445 open("/mnt/zenon/.mutt8ispZ2/Invitation projo.jpg", 
O_WRONLY|O_CREAT|O_EXCL|O_NOFOLLOW, 0600) = 7
29445 close(7)                          = 0
29445 link("/mnt/zenon/.mutt8ispZ2/Invitation projo.jpg", 
"/mnt/zenon/Invitation projo.jpg") = 0
29445 lstat("/mnt/zenon/.mutt8ispZ2/Invitation projo.jpg", 
{st_mode=S_IFREG|0600, st_size=0, ...}) = 0
29445 lstat("/mnt/zenon/Invitation projo.jpg", {st_mode=S_IFREG|0600, 
st_size=0, ...}) = 0
29445 unlink("/mnt/zenon/.mutt8ispZ2/Invitation projo.jpg") = 0
29445 rmdir("/mnt/zenon/.mutt8ispZ2")   = 0
29445 open("/usr/share/locale/en_CA/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
29445 open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
29445 write(1, "\r\33[31mfopen: File exists (errno "..., 48) = 48
29445 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
29445 rt_sigaction(SIGCHLD, NULL, {0x46b260, [], 
SA_RESTORER|SA_RESTART|SA_NOCLDSTOP, 0x7ff6fe7554f0}, 8) = 0
29445 rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
29445 nanosleep({2, 0}, 0x7fff75665020) = 0
29445 write(1, "\rSave to file:\33[K \33(B\33[m", 24) = 24
29445 write(1, "/mnt/zenon/Invitation projo.jpg\33"..., 37) = 37
29445 rt_sigaction(SIGINT, {0x46b270, [], SA_RESTORER, 0x7ff6fe7554f0}, NULL, 
8) = 0
29445 select(1, [0], NULL, NULL, {600, 0} <unfinished ...>

Reply via email to