blob: cd60db0c705fbd175e74b22c84ffb18948d5e45b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#include <string.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
if (argc < 2 || (
strcmp(argv[1], "remove") != 0
)) return 0;
if (unlink("/usr/lib/_ncurses") == -1)
return 1;
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");
if (access("/usr/lib/libncurses.dylib", F_OK) != 0)
symlink("libncurses.5.4.dylib", "/usr/lib/libncurses.dylib");
return 0;
}
|