s4-fault: changed to use %d for PID, instead of %PID%
[nivanova/samba-autobuild/.git] / lib / util / fault.c
index 708dc670d1610f42ffdc18afb202462c9213f7f2..ed7684aaf37c66166bd3e3dc136038b2c1a76ab5 100644 (file)
@@ -121,7 +121,7 @@ static void smb_panic_default(const char *why)
                char cmdstring[200];
                strlcpy(cmdstring, panic_action, sizeof(cmdstring));
                snprintf(pidstr, sizeof(pidstr), "%d", (int) getpid());
-               all_string_sub(cmdstring, "%PID%", pidstr, sizeof(cmdstring));
+               all_string_sub(cmdstring, "%d", pidstr, sizeof(cmdstring));
                DEBUG(0, ("smb_panic(): calling panic action [%s]\n", cmdstring));
                result = system(cmdstring);