Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
564ec00f
Commit
564ec00f
authored
Apr 06, 2011
by
Mike Hibler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak the NUL check slightly: print out the original string with nulls.
parent
a929ad9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
db/Node.pm.in
db/Node.pm.in
+2
-1
No files found.
db/Node.pm.in
View file @
564ec00f
...
...
@@ -55,13 +55,14 @@ sub checknodeid($$)
my
($
nid
,$
msg
)
=
@
_
;
if
($
nid
=~
/^(.*)\
x0
/)
{
my
$
onid
=
$
nid
;
$
nid
=
$
1
;
if
(
!exists($carped{$nid}) && open(MAIL, "| /usr/sbin/sendmail -t")) {
$
carped
{$
nid
}
=
1
;
require
Carp
;
my
$
TBOPS
=
"@TBOPSEMAIL@"
;
print
MAIL
"To: $TBOPS
\n
"
;
print
MAIL
"Subject: NUL in node_id '$nid'
\n
"
;
print
MAIL
"Subject: NUL in node_id '$nid'
('$onid')
\n
"
;
print
MAIL
"$msg
\n
"
;
print
MAIL
"
\n
"
;
print
MAIL
Carp
::
longmess
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment