- Timestamp:
- Mar 27, 2012, 9:03:01 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/Changelog
r395 r396 1 1 3.0.3: 2 * fixed problem with samhain_stealth.c (handle input config 3 files that don't end with a newline) 4 * fixed compiler warnings for yulectl.c with stealth 2 5 * fixed lacking support for O_NOATIME on 64bit linux 3 6 -
trunk/src/samhain_stealth.c
r212 r396 414 414 */ 415 415 lseek(fd, off_data, SEEK_SET); 416 add_off = hidein_hex_block(fd, _(" [EOF]\n"), 6);416 add_off = hidein_hex_block(fd, _("\n[EOF]\n"), 7); 417 417 if (add_off == -1) 418 418 { -
trunk/src/yulectl.c
r200 r396 268 268 { 269 269 if (verbose && (num == 0)) 270 fprintf (stdout, _("# There are no pending commands.\n"));270 fprintf (stdout, "%s", _("# There are no pending commands.\n")); 271 271 return 0; 272 272 } … … 300 300 if (0 != good) 301 301 { 302 fprintf (stderr, _("ERROR: Bounced message != original message (possible reason: superfluous password).\n"));302 fprintf (stderr, "%s", _("ERROR: Bounced message != original message (possible reason: superfluous password).\n")); 303 303 return -1; 304 304 } … … 306 306 { 307 307 if (verbose) 308 fprintf (stdout, _("# Message received by server.\n"));308 fprintf (stdout, "%s", _("# Message received by server.\n")); 309 309 } 310 310 … … 317 317 name); 318 318 319 printf( _("Purpose : send commands to the server via a socket,\n"));320 printf( _(" in particular commands that the server would\n"));321 printf( _(" transfer to the client <client_hostname> when\n"));322 printf( _(" this client connects to deliver a message.\n\n"));323 printf( _(" If password is required, it is read from\n"));324 printf( _(" $HOME/.yulectl_cred or taken from the environment\n"));325 printf( _(" variable YULECTL_PASSWORD (not recommended).\n\n"));326 327 printf( _("Commands: RELOAD <reload configuration>\n"));328 printf( _(" STOP <terminate>\n"));329 printf( _(" SCAN <initiate file system check\n"));330 printf( _(" CANCEL <cancel previous command>\n"));331 printf( _(" LIST <list queued commands>\n"));332 printf( _(" LISTALL <list queued and last sent commands>\n"));333 printf( _(" PROBE <probe all clients for necessity of reload>\n"));319 printf("%s", _("Purpose : send commands to the server via a socket,\n")); 320 printf("%s", _(" in particular commands that the server would\n")); 321 printf("%s", _(" transfer to the client <client_hostname> when\n")); 322 printf("%s", _(" this client connects to deliver a message.\n\n")); 323 printf("%s", _(" If password is required, it is read from\n")); 324 printf("%s", _(" $HOME/.yulectl_cred or taken from the environment\n")); 325 printf("%s", _(" variable YULECTL_PASSWORD (not recommended).\n\n")); 326 327 printf("%s", _("Commands: RELOAD <reload configuration>\n")); 328 printf("%s", _(" STOP <terminate>\n")); 329 printf("%s", _(" SCAN <initiate file system check\n")); 330 printf("%s", _(" CANCEL <cancel previous command>\n")); 331 printf("%s", _(" LIST <list queued commands>\n")); 332 printf("%s", _(" LISTALL <list queued and last sent commands>\n")); 333 printf("%s", _(" PROBE <probe all clients for necessity of reload>\n")); 334 334 return; 335 335 } … … 396 396 if ( (strlen(home) + strlen(_("/.yulectl_cred")) + 1) > 4096) 397 397 { 398 fprintf (stderr, _("ERROR: path for $HOME is too long.\n"));398 fprintf (stderr, "%s", _("ERROR: path for $HOME is too long.\n")); 399 399 exit(EXIT_FAILURE); 400 400 } … … 424 424 if (NULL == fgets(message2, sizeof(message2), fp)) 425 425 { 426 fprintf (stderr, 426 fprintf (stderr, 427 427 _("ERROR: empty or unreadable password file (%s).\n"), 428 428 home); … … 434 434 if (strlen(message2) > 14) 435 435 { 436 fprintf (stderr, 436 fprintf (stderr, "%s", 437 437 _("ERROR: Password too long (max. 14 characters).\n")); 438 438 exit(EXIT_FAILURE); … … 501 501 if (argv[num] == NULL || argv[num][0] == '\0') { 502 502 usage(argv[0]); 503 fprintf(stderr, _("ERROR: -s: argument missing\n"));503 fprintf(stderr, "%s", _("ERROR: -s: argument missing\n")); 504 504 return (EXIT_FAILURE); 505 505 } else { … … 518 518 if (argv[num] == NULL || argv[num][0] == '\0') { 519 519 usage(argv[0]); 520 fprintf(stderr, _("ERROR: -c: argument missing\n"));520 fprintf(stderr, "%s", _("ERROR: -c: argument missing\n")); 521 521 return (EXIT_FAILURE); 522 522 } else { … … 575 575 else 576 576 { 577 fprintf(stderr, _("ERROR: this command requires a hostname\n"));577 fprintf(stderr, "%s", _("ERROR: this command requires a hostname\n")); 578 578 usage(argv[0]); 579 579 return (EXIT_FAILURE); … … 623 623 if (status < 0) 624 624 { 625 fprintf(stderr, _("ERROR: sending command to server failed\n"));625 fprintf(stderr, "%s", _("ERROR: sending command to server failed\n")); 626 626 (void) termination_handler(0); 627 627 return (EXIT_FAILURE); … … 634 634 { 635 635 if (verbose) 636 fprintf(stdout, _("# Waiting for listing.\n"));636 fprintf(stdout, "%s", _("# Waiting for listing.\n")); 637 637 } 638 638 else 639 639 { 640 640 if (verbose) 641 fprintf(stdout, _("# Waiting for confirmation.\n"));641 fprintf(stdout, "%s", _("# Waiting for confirmation.\n")); 642 642 } 643 643 status = recv_from_server (message); … … 645 645 if (status < 0) 646 646 { 647 fprintf(stderr, _("ERROR: receiving data from server failed.\n"));647 fprintf(stderr, "%s", _("ERROR: receiving data from server failed.\n")); 648 648 (void) termination_handler(0); 649 649 return (EXIT_FAILURE);
Note:
See TracChangeset
for help on using the changeset viewer.