deleteprinterdriverex does not delete files
Gerald (Jerry) Carter
jerry at samba.org
Mon Apr 26 17:25:24 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Martin Zielinski wrote:
| since upgrading from 3.0.2a to 3.0.3rc1 the
| deleteprinterdriverex call does no longer delete the driver
| files on my system.
|
| It seems to me, that the unix_convert() function in
| filename.c is responsible for it.
| I'm not aware of the changes from Alexander Bokovoy, but
| after re-adding the unix_format(name)- unix_clean_name(name)-
| and trim_char(name,'/','/')- calls into the unix_convert -
| function, it's working again.
|
| I added this debug output to smbd/reply.c can_delete() just before
| if (SMB_VFS_LSTAT(conn,fname,&sbuf) != 0) { :
|
| DEBUG(0,("LSTAT: \"%s\"\n", fname));
| Output:
| ./\W32X86\3\PSCRIPT5.DLL
Thanks Martin, I'll work on getting this fixed for 3.0.3.
| BTW, what do you think about adding the deleteprinterdriverex
| call to rpcclient? There is currently some functionality
| to add driver files (cupsaddsmb) but no to delete them.
Probably a good idea. I'll look at it (after 3.0.3).
cheers, jerry
- ----------------------------------------------------------------------
Hewlett-Packard ------------------------- http://www.hp.com
SAMBA Team ---------------------- http://www.samba.org
GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc
"...a hundred billion castaways looking for a home." ----------- Sting
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAjUYEIR7qMdg1EfYRAhWzAJ4114tryu9Fg2P4RP3muU5H6aXebACgkvhl
d8bZpa+/Rd1YFxY30MB1vMs=
=eb3/
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list