]> granicus.if.org Git - sudo/commitdiff
In pp_files_expand() set _target to be empty. Fixes a problem with
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 24 Sep 2014 15:18:54 +0000 (09:18 -0600)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 24 Sep 2014 15:18:54 +0000 (09:18 -0600)
Solaris sh where simply using typeset doesn't causes the variable
to be treated as local so we can inadvertantly inherit a value from
a previous call.

pp

diff --git a/pp b/pp
index 247dd2daf2fa65619b41878cae361066e6c0ca92..fc45b84d4e24b90720972460ecd3843950f46ba7 100755 (executable)
--- a/pp
+++ b/pp
@@ -1,6 +1,6 @@
 #!/bin/sh
 # Copyright 2014 Quest Software, Inc. ALL RIGHTS RESERVED
-pp_revision="20140711"
+pp_revision="20140924"
  # Copyright 2012 Quest Software, Inc.  ALL RIGHTS RESERVED.
  #
  # Redistribution and use in source and binary forms, with or without
@@ -1285,6 +1285,7 @@ pp_files_expand () {
 
     #-- process the flags argument
     _flags=
+    _target=
     _optional=false
     _has_target=false
     _ignore=false