depot/pkgs/servers/mail/postfix/relative-symlinks.patch
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

13 lines
456 B
Diff

diff --git a/postfix-install b/postfix/postfix-install
index 1662c3d..0f20ec0 100644
--- a/postfix-install
+++ b/postfix-install
@@ -336,7 +336,7 @@ compare_or_symlink() {
# 2) we cannot use mv to replace a symlink-to-directory;
# 3) "ln -n" is not in POSIX, therefore it's not portable.
# rm+ln is less atomic but this affects compatibility symlinks only.
- rm -f $2 && ln -sf $link $2 || exit 1
+ rm -f $2 && ln -rsf $link $2 || exit 1
}
}