Skip to content

Commit

Permalink
do not use os.getcwd - prevent dereferencing of symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
mfiers committed Jun 25, 2012
1 parent a99552b commit 1122943
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/moa
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ def run_2(force_silent=False):

sysConf.pluginHandler.run('prepare_recursion')

wd = os.getcwd()
wd = moa.utils.getCwd()
l.debug("starting run_2 in %s" % wd)
if not '-r' in sys.argv:
#not recursive - go directly to stage 3
try:
Expand Down

0 comments on commit 1122943

Please sign in to comment.