summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2011-07-13 17:26:31 +1000
committerAndrew Tridgell <tridge@samba.org>2011-07-13 12:51:05 +0200
commit18995cde5c5d2e647d94f9dcde4ba9261464c217 (patch)
tree2c7f286a432f23a99ae1cb3fa8f4ffb6f7c130b3 /lib/util
parent80c8f42f058bdcdf639037927c5941190f019a67 (diff)
downloadsamba-18995cde5c5d2e647d94f9dcde4ba9261464c217.tar.gz
samba-18995cde5c5d2e647d94f9dcde4ba9261464c217.tar.bz2
samba-18995cde5c5d2e647d94f9dcde4ba9261464c217.zip
s4-fault: changed to use %d for PID, instead of %PID%
this matches the s3 behaviour Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/fault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/fault.c b/lib/util/fault.c
index 708dc670d1..ed7684aaf3 100644
--- a/lib/util/fault.c
+++ b/lib/util/fault.c
@@ -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);