Keep winexe from dumping core and the memory it was using. This could be a potential security issue if winexe had a windows server password in it's memory address space at the time of dumping core. Signed-off-by: Jeff Schroeder Index: Samba/source/winexe/winexe.c =================================================================== --- Samba/source/winexe/winexe.c (revision 9532) +++ Samba/source/winexe/winexe.c (working copy) @@ -21,6 +21,7 @@ #include #include #include +#include struct program_args { char *hostname; @@ -302,6 +303,7 @@ NTSTATUS status; struct smbcli_state *cli; struct program_args myargs = {.reinstall = 0,.uninstall = 0, .system = 0, .interactive = SVC_IGNORE_INTERACTIVE }; + prctl(PR_SET_DUMPABLE, 0); parse_args(argc, argv, &myargs); DEBUG(1, ("winexe version %d.%02d\nThis program may be freely redistributed under the terms of the GNU GPL\n", VERSION / 100, VERSION % 100));