[pacman-dev] [PATCH] Use colon instead of dot separator for chown

Sebastian Nowicki sebnow at gmail.com
Tue May 27 15:22:08 EDT 2008


On BSD systems using a dot as a separator is not allowed. On Mac OSX it
is deprecated. A colon should be used instead. BSD systems also use the
"wheel" group instead of "root" to indicate the "super user" group. Both
groups use the id of 0.

Signed-off-by: Sebastian Nowicki <sebnow at gmail.com>
---
 scripts/makepkg.sh.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index cc44c68..1209bd0 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -629,8 +629,8 @@ extract_sources() {
 	done
 
 	if [ $EUID -eq 0 ]; then
-		# chown all source files to root.root
-		chown -R root.root "$srcdir"
+		# chown all source files to root:0
+		chown -R root:0 "$srcdir"
 	fi
 }
 
-- 
1.5.5.1





More information about the pacman-dev mailing list