[Samba] Symbolic link gets overwritten

Daniel Johnson Progman2000 at usa.net
Sun Jan 11 03:53:22 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10 Jan 2004 at 18:49, Martin Schuster wrote:
> hard/symbolic links") and the answer was "what samba did was to
> follow very precisely the instructions given by your MS Windows
> software", which is the wrong point of view, I think, because then
> samba should also deliver the symbolic link file, not the file the
> link points to, right?

It actually worked correctly in that case.  Most Windows applications
I've dealt with don't overwite existing files when saving.  They
create a new file, fill it with the information, delete the old file,
and rename new_name to old_name.

When Windows asks for the file, Samba does the right thing by sending
the link's target.  When Windows wants the file deleted, Samba
deletes the link instead of the target because that's the way links
are treated in *nix.  It has no way of knowing that Windows is really
doing a save operation.

I imagine the only way to deal with this would be making Samba cache
the file operations without doing anything destructive.  After X
time, review the cache for hints that a save was being done and then
perform the operation "properly".  That would probably require a
major rewrite and put a heavy load on the system.

Of course I could be wrong, I'm certainly not a Samba guru.  :)

- -- 
Through the modem, off the server, over the T1, past the frame-relay,
< < NOTHIN' BUT NET > >
 
Daniel Johnson
Progman2000 at usa.net
http://dannyj.come.to/
Public PGP Keys & other info: http://dannyj.come.to/pgp/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32) - GPGshell v2.95

iD8DBQFAAMig6vGcUBY+ge8RArOjAKDbO50Er+oUz3b9NYtjulArUTgTFwCfUR+x
ECOcFcajpBiVLstVgmfKmWc=
=CTfG
-----END PGP SIGNATURE-----



More information about the samba mailing list