From: Sturla H. H. <st...@hi...> - 2006-09-04 09:13:35
|
On Sat, September 2, 2006 05:20, Craig Barratt wrote: > Sturla writes: > >> I restored to the same directory as the backup was taken from and the >> symlinks LOOK ok when I stat them, but they just won't work. >> If I delete the symlink and create it again with the info from stat it >> works, but it's kinda tedious doing this on every symlink. >> I tried to write a script to do it for me, but I'll have to work some >> more >> on the selection-part on what to do with regards to what the first cha= r >> in >> the symlink is (wether its / or .. or just a regular letter). >> >> Any pointers would be great... > > You have to include some specific examples in your email. > Show us a symlink that doesn't work, and one that does. > Are just absolute symlinks or just relative symlinks > broken? > > Do "ls -l LINKNAME | od -c" to see if there are any extraneous > characters in the symlink. Also do "ls -lL LINKNAME" to see > if the target file exists. > > Craig > There are absolutely no difference in the output from "stat somesymlink" before and after I have done "rm somesymlink; ln -s somepath ." where the somepath is the same as was reported from stat before I deleted the old symlink, it just won't work... But I guess since noone else has seen this that it was just a freak incident, I sure hope so :) Thanx for trying to help :) Sturla |