[sysadmin-bin: 57/168] Quote "$@" in exec lines



commit 01c8124017662527a0016ed2a4e79a768664e527
Author: Owen W. Taylor <otaylor fishsoup net>
Date:   Thu Mar 19 18:35:29 2009 -0400

    Quote "$@" in exec lines
    
    Quoting "$@" prevents unexpected splitting of command line
    arguments - shouldn't matter here - we don't allow spaces in
    repository names, but better practice.

 receive-pack-force  |    2 +-
 receive-pack-import |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/receive-pack-force b/receive-pack-force
index 23f05ad..2d09cb0 100755
--- a/receive-pack-force
+++ b/receive-pack-force
@@ -14,4 +14,4 @@ if ! $in_gitadmin ; then
 fi
 
 export GNOME_GIT_FORCE=1
-exec git-receive-pack $@
+exec git-receive-pack "$@"
diff --git a/receive-pack-import b/receive-pack-import
index 6b0491c..920dffa 100755
--- a/receive-pack-import
+++ b/receive-pack-import
@@ -1,4 +1,4 @@
 #!/bin/bash
 
 export GNOME_GIT_IMPORT=1
-exec git-receive-pack $@
+exec git-receive-pack "$@"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]