Re: symlink of /home causes mail delivery failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Steve Siegfried wrote:
Dr. Michael J. Chudobiak wrote:
Is there any reason that procmail (or anything else) would fail if /home is a symlink?
It depends on:

  - What shell you're using:  When presented with a directory symlink like
    "/home/A -> /tmp/A", environment variable HOME defined as "/home/A",
    and the command "cd $HOME", some shells (sh for example) won't update
    the cwd variable when they get there.  Thus the shell (sh in this
    example) will yield funny results:
		# cd $HOME
		# echo $PWD
		/home/A
		# pwd
		/home/A
		# /bin/pwd
		/tmp/a

Why would that matter? /home/A/Inbox and /tmp/A/Inbox will still be the same file, so this shouldn't actually create a problem.

 - The type of symlink reference you've used.  "/home/A -> /tmp/A"
   will normally cause less trouble than "/home/A -> ../../tmp/A".

That is precisely wrong. Using relative paths (which would be ../tmp/A, not ../../tmp/A) will be less problematic. When your system is mounted in a different location by a rescue CD, for instance, relative paths will work properly, but absolute paths will not.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux