| Index: gclient.py
|
| diff --git a/gclient.py b/gclient.py
|
| index 8de7e52df8f4702a37d9bfd5e6632a29ec209c1b..fab867b7439b4dfa957c1bbdb17d923049484b7b 100755
|
| --- a/gclient.py
|
| +++ b/gclient.py
|
| @@ -1886,6 +1886,12 @@ def CMDconfig(parser, args):
|
| else:
|
| # specify an alternate relpath for the given URL.
|
| name = options.name
|
| + if not os.path.abspath(os.path.join(os.getcwd(), name)).startswith(
|
| + os.getcwd()):
|
| + parser.error('Do not pass a relative path for --name.')
|
| + if any(x in ('..', '.', '/', '\\') for x in name.split(os.sep)):
|
| + parser.error('Do not include relative path components in --name.')
|
| +
|
| deps_file = options.deps_file
|
| safesync_url = ''
|
| if len(args) > 1:
|
|
|