Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-stable
Commits
6d2a7389
Commit
6d2a7389
authored
Apr 20, 2001
by
Robert Ricci
Browse files
Small change to eliminate a warning in some cases. Not security-related:
I was checking $ARGV[0] w/o making sure it was defined first.
parent
b06ae702
Changes
2
Show whitespace changes
Inline
Side-by-side
security/paperbag.in
View file @
6d2a7389
...
@@ -52,7 +52,7 @@ if (@ARGV && ($ARGV[0] eq "-c")) { # We were called by sshd - transform args int
...
@@ -52,7 +52,7 @@ if (@ARGV && ($ARGV[0] eq "-c")) { # We were called by sshd - transform args int
if
(
@ARGV
&&
(
$ARGV
[
0
]
=~
/dir=(.*)/
))
{
if
(
@ARGV
&&
(
$ARGV
[
0
]
=~
/dir=(.*)/
))
{
shift
@ARGV
;
shift
@ARGV
;
&cd
(
$
1
);
# Change to given directory
&cd
(
$
1
);
# Change to given directory
}
elsif
(
$ARGV
[
0
]
eq
"
cd
")
{
# also understand 'cd dir &&' or 'cd dir ;' syntax to be a little more compatible
}
elsif
(
@ARGV
&&
(
$ARGV
[
0
]
eq
"
cd
")
)
{
# also understand 'cd dir &&' or 'cd dir ;' syntax to be a little more compatible
# with other shells
# with other shells
# Discard the cd
# Discard the cd
shift
@ARGV
;
shift
@ARGV
;
...
...
xmlrpc/xmlrpcbag.in
View file @
6d2a7389
...
@@ -52,7 +52,7 @@ if (@ARGV && ($ARGV[0] eq "-c")) { # We were called by sshd - transform args int
...
@@ -52,7 +52,7 @@ if (@ARGV && ($ARGV[0] eq "-c")) { # We were called by sshd - transform args int
if
(
@ARGV
&&
(
$ARGV
[
0
]
=~
/dir=(.*)/
))
{
if
(
@ARGV
&&
(
$ARGV
[
0
]
=~
/dir=(.*)/
))
{
shift
@ARGV
;
shift
@ARGV
;
&cd
(
$
1
);
# Change to given directory
&cd
(
$
1
);
# Change to given directory
}
elsif
(
$ARGV
[
0
]
eq
"
cd
")
{
# also understand 'cd dir &&' or 'cd dir ;' syntax to be a little more compatible
}
elsif
(
@ARGV
&&
(
$ARGV
[
0
]
eq
"
cd
")
)
{
# also understand 'cd dir &&' or 'cd dir ;' syntax to be a little more compatible
# with other shells
# with other shells
# Discard the cd
# Discard the cd
shift
@ARGV
;
shift
@ARGV
;
...
...
Write
Preview
Supports
Markdown
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