#!/usr/bin/perl # Show Broker Input - Debugging utility. # Enable in the broker config file like so: # command: ^sbi$ # { # action = filter; # checkauth = true; # execute = /p4/common/hms/scripts/sbi.pl; # } use strict; my $Log="$ENV{LOGS}/sbi.log"; my $Output; open (LOG, ">$Log") or die "\nError: Log is bogus!\n"; while (<STDIN>) { print LOG; } close (LOG); $Output = `/bin/cat $Log 2>&1`; print "action: REJECT\n"; print "message: \"$Output\"\n"; exit (1);
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 25550 | C. Thomas Tyler |
Split HMS from SDP, such that HMS will live on as a separate product, layered on the SDP. See: https://swarm.workshop.perforce.com/jobs/SDP-356 Many of the files deleted here have already been copied to HMS. See these HMS changes: https://swarm.workshop.perforce.com/changes/25531 https://swarm.workshop.perforce.com/changes/25533 And this branch spec: SDP_Split_2019.2_HMS In mkrep.sh, HMS-awareness is removed from mkrep.sh, a core SDP script, and the '-f' (Full Setup) flag has been temporarily removed. This useful functionality will be restored in an HMS script. This is a big change, so shellcheck v0.6.0 was implemented to support it. |
||
#1 | 20801 | C. Thomas Tyler |
Implemented security: 'p4 hms' commands require a super user to be logged in. Added 'p4 sbi' (show broker input) broker debugging utility. |