[EMAIL PROTECTED] wrote:

> hi,
>
> i'm having some problems when using the rename library function, when
>
> i try to rename a file thru a link, ie. the destination directory in
>
> pointed to by a link. The rename function seems to work ok for
>
> links within the same partition / device - but fails with a return
>
> code of -1 when the link points to a directory on another device!
>
> Is there a workaround - or is this a 'feature'
>
> thanks for any helpfull hints!
>
> -

John If I understand you correctly you are trying to move a file that has a hard link 
pointed to it to another filesystem?  I don;t think that hardlinks can point to files 
on other system so that would be the reason the command fails.  Try using symbolic 
links, "ln -s target linkname" and see if it works.

Bret



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to