summaryrefslogtreecommitdiff
path: root/data/ncurses/_metadata/prerm.c
diff options
context:
space:
mode:
Diffstat (limited to 'data/ncurses/_metadata/prerm.c')
-rw-r--r--data/ncurses/_metadata/prerm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/data/ncurses/_metadata/prerm.c b/data/ncurses/_metadata/prerm.c
index 1bcb72a4c..cd60db0c7 100644
--- a/data/ncurses/_metadata/prerm.c
+++ b/data/ncurses/_metadata/prerm.c
@@ -9,13 +9,8 @@ int main(int argc, char *argv[]) {
if (unlink("/usr/lib/_ncurses") == -1)
return 1;
- if (mkdir("/usr/lib/_ncurses", 0755) == -1) {
- symlink("/usr/lib/", "/usr/lib/_ncurses");
- return 2;
- }
-
- rename("/usr/lib/libcurses.dylib", "/usr/lib/_ncurses/libcurses.dylib");
- rename("/usr/lib/libncurses.dylib", "/usr/lib/_ncurses/libncurses.dylib");
+ unlink("/usr/lib/libcurses.dylib");
+ unlink("/usr/lib/libncurses.dylib");
if (access("/usr/lib/libcurses.dylib", F_OK) != 0)
symlink("libncurses.5.4.dylib", "/usr/lib/libcurses.dylib");