|
Lines 258-264
Link Here
|
| 258 |
+ if ((fp = file_open(filename, "w"))) { |
258 |
+ if ((fp = file_open(filename, "w"))) { |
| 259 |
+ if (fchmod(fileno(fp), 0755) != 0) |
259 |
+ if (fchmod(fileno(fp), 0755) != 0) |
| 260 |
+ exit(1); |
260 |
+ exit(1); |
| 261 |
+ fprintf(fp, "in-target "); |
261 |
+ fprintf(fp, "#!/bin/sh\nin-target "); |
| 262 |
+ for (i = 0; i < ucr_count; i++) |
262 |
+ for (i = 0; i < ucr_count; i++) |
| 263 |
+ /* FIXME: This is not save for single quotes */ |
263 |
+ /* FIXME: This is not save for single quotes */ |
| 264 |
+ fprintf(fp, "'%s'%c", ucr_args[i], i + 1 >= ucr_count ? '\n' : ' '); |
264 |
+ fprintf(fp, "'%s'%c", ucr_args[i], i + 1 >= ucr_count ? '\n' : ' '); |