/[baselayout]/trunk/src/librc.c
Gentoo

Diff of /trunk/src/librc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2597 Revision 2634
134 memset (buffer, 0, sizeof (buffer)); 134 memset (buffer, 0, sizeof (buffer));
135 if (file) { 135 if (file) {
136 r = readlink (file, buffer, sizeof (buffer)); 136 r = readlink (file, buffer, sizeof (buffer));
137 free (file); 137 free (file);
138 if (r > 0) 138 if (r > 0)
139 return strdup (buffer); 139 return (rc_xstrdup (buffer));
140 } 140 }
141 141
142 snprintf (buffer, sizeof (buffer), RC_INITDIR "%s", service); 142 snprintf (buffer, sizeof (buffer), RC_INITDIR "%s", service);
143 return (strdup (buffer)); 143 return (strdup (buffer));
144} 144}
465 free (file); 465 free (file);
466 return (-1); 466 return (-1);
467 } 467 }
468 468
469 if ((pid = fork ()) == 0) { 469 if ((pid = fork ()) == 0) {
470 char *myarg = strdup (arg); 470 char *myarg = rc_xstrdup (arg);
471 int e = 0; 471 int e = 0;
472 execl (file, file, myarg, (char *) NULL); 472 execl (file, file, myarg, (char *) NULL);
473 e = errno; 473 e = errno;
474 free (myarg); 474 free (myarg);
475 unlink (fifo); 475 unlink (fifo);

Legend:
Removed from v.2597  
changed lines
  Added in v.2634

  ViewVC Help
Powered by ViewVC 1.1.20