]> granicus.if.org Git - sudo/commitdiff
Remove apparently unnecessary use of sudo
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 26 Jul 2010 19:00:34 +0000 (15:00 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 26 Jul 2010 19:00:34 +0000 (15:00 -0400)
pp

diff --git a/pp b/pp
index f254a7089c6ee40807177596bdd032c060762833..cf80119527365c089b19adb329f66caa08c97c72 100755 (executable)
--- a/pp
+++ b/pp
@@ -1,6 +1,6 @@
 #!/bin/sh
 # (c) 2010 Quest Software, Inc. All rights reserved
-pp_revision="277"
+pp_revision="278"
 
  # Copyright (c) 2010 Quest Software, Inc.  All rights reserved.
  #
@@ -2216,7 +2216,7 @@ pp_backend_sd_detect () {
 }
 
 pp_backend_sd_init () {
-    pp_sd_sudo=sudo     # FIXME: argh why is hpux so braindead
+    pp_sd_sudo=
     pp_sd_startlevels=2
     pp_sd_stoplevels=auto
     pp_sd_config_file=
@@ -6430,20 +6430,20 @@ pp_macos_mkbom () {
     bomstage=$pp_wrkdir/bom_stage
     while IFS='        ' read path mode ugid size cksumi linkpath; do
        if test -h "$pp_destdir/$path"; then
-           sudo /bin/ln -s "$linkpath" "$bomstage/$path"
+           /bin/ln -s "$linkpath" "$bomstage/$path"
        else
            if test -d "$pp_destdir/$path"; then
-               sudo /bin/mkdir -p "$bomstage/$path"
+               /bin/mkdir -p "$bomstage/$path"
            else
-               sudo /bin/cp "$pp_destdir/$path" "$bomstage/$path"
+               /bin/cp "$pp_destdir/$path" "$bomstage/$path"
            fi
-           sudo /bin/chmod $mode "$bomstage/$path"
-           sudo /usr/sbin/chown `echo $ugid| tr / :` "$bomstage/$path"
+           /bin/chmod $mode "$bomstage/$path"
+           /usr/sbin/chown `echo $ugid| tr / :` "$bomstage/$path"
        fi
     done <"$1"
-    (cd $bomstage && sudo mkbom . $pp_wrkdir/bom_stage.bom) ||
+    (cd $bomstage && mkbom . $pp_wrkdir/bom_stage.bom) ||
        pp_error "mkbom failed"
-    sudo mv $pp_wrkdir/bom_stage.bom "$2"
+    mv $pp_wrkdir/bom_stage.bom "$2"
 }
 
 pp_backend_macos () {
@@ -6614,7 +6614,7 @@ CompressedSize 0
     cat $pp_wrkdir/%files.* | awk '{ print "." $6 }' | sed '/\/$/d' | sort | /bin/pax -w -f - | gzip -9 -c > $Contents/Archive.pax.gz
     )
 
-       sudo rm -rf $pp_wrkdir/bom_stage
+       rm -rf $pp_wrkdir/bom_stage
 }
 
 pp_backend_macos_cleanup () {