View | Details | Raw Unified | Return to bug 54259
Collapse All | Expand All

(-)1.160-errata5.0-1/0001-Bug-35435-d-i-Write-UCR-net-configuration.patch (-1 / +1 lines)
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' : ' ');

Return to bug 54259