/mandos/release

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/release

« back to all changes in this revision

Viewing changes to plugins.d/usplash.c

  • Committer: Teddy Hogeborn
  • Date: 2008-09-26 18:03:10 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080926180310-6npcdb9v7sl60zlf
* plugins.d/usplash.c (usplash_write): Move "cmd_line_len" up.
  (main): Bug fix: Check result of "readlink".  Bug fix: do not write
          if "buf" is empty.  Bug fix:  Free "buf".  Bug fix: Free
          "cmdline".  Bug fix: Check result of "execv".  Bug fix: free
          "cmdline_argv".

Show diffs side-by-side

added added

removed removed

Lines of Context:
431
431
      position += strlen(cmdline + position) + 1;
432
432
    }
433
433
    cmdline_argv[cmdline_argc] = NULL;
 
434
    free(cmdline);
434
435
  }
435
436
  /* Kill old usplash */
436
437
    kill(usplash_pid, SIGTERM);
463
464
    
464
465
    execv(usplash_name, cmdline_argv);
465
466
    perror("execv");
466
 
    free(cmdline);
467
467
    free(cmdline_argv);
468
468
    _exit(EXIT_FAILURE);
469
469
  }
470
 
  free(cmdline);
471
470
  free(cmdline_argv);
472
471
  sleep(2);
473
472
  if(not usplash_write("PULSATE", NULL)