Ticket #291: patch-color.c
File patch-color.c, 404 bytes (added by noses@…, 22 years ago) |
---|
Line | |
---|---|
1 | --- color.c.orig Mon Jan 24 10:59:01 2000 |
2 | +++ color.c Mon Jan 24 10:57:36 2000 |
3 | @@ -336,7 +336,7 @@ |
4 | error(1, "init_color_mask: getpwuid"); |
5 | (void) sprintf(buf, "%s/.%s", pw->pw_dir, program_name); |
6 | if ((fp = fopen(buf, "r")) == NULL) { |
7 | - (void) strcpy(buf, "/etc/"); |
8 | + (void) strcpy(buf, "%%PREFIX%%/etc/"); |
9 | (void) strcat(buf, program_name); |
10 | if ((fp = fopen(buf, "r")) == NULL) return 0; |
11 | } |