PDA

View Full Version : Symlink problem with /var/spool



l0rdphi1
04-24-2004, 09:34 AM
Due to space issues with my /var partition, I have /var/mail and /var/spool symlinked to /home/spool/mail and /home/spool, respectively. This creates problems when I go to remove a domain. I get-
Domain Deletion Results

Details

Error deleting domaddin.cc

Unable to remove /var/spool/virtual/domaddin.cc as it contains a symbolic link


Unable to open domain pointers file

domaddin.cc's config files have been removed



Click HERE to return
Any ideas?

DirectAdmin Support
04-24-2004, 03:11 PM
I remember adding that check a few releases ago. It was done globally for the function to remove a directory and it's files. I've just changed the code for you to ignore any symlinks when removing the /var/spool/virtual/domain.com directory. (next release)

John

l0rdphi1
04-24-2004, 03:39 PM
Thanks :)

floyd
01-31-2007, 06:55 AM
I am having the same problem almost 3 years later. I have /var symlinked to /home/var which is another partition. Whenever I delete a domain is gives the error:


Error deleting tmpdomain.com

Email:destroy: Unable to remove /var/spool/virtual/tmpdomain.com as it contains a symbolic link


tmpdomain.com's config files have been removed

nobaloney
01-31-2007, 09:36 AM
Are you sure have a recent version of DA installed? What version are you running?

Jeff

floyd
01-31-2007, 09:47 AM
Hi Jeff,

I am running version 1.28.1.

I see 1.29 is out now but I doubt that will make a difference unless the issue has specifically been addressed.

nobaloney
01-31-2007, 12:20 PM
I guess it's time to check with DA support.

Jeff

DirectAdmin Support
01-31-2007, 12:25 PM
Found the code, added the flag to ignore the symlink. Available for next relelase.

If you need this fix now, send us an email including your OS and version.

John