Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=xfcetesting.git;a=commitdiff;h=f9f5bfbdc6cec865f839aa2884d486fc02b0bd49

commit f9f5bfbdc6cec865f839aa2884d486fc02b0bd49
Author: James Buren <[email protected]>
Date:   Mon Jun 25 21:46:10 2012 -0500

util.sh: F chown/chmod functions can now work with full file paths containing 
spaces

diff --git a/source/include/util.sh b/source/include/util.sh
index 65b31c3..0a6a514 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -463,7 +463,7 @@ Finstall() {
###
Fdirschmod() {
Fmessage "Changing directory permissions inside: $1"
-       find "$Fdestdir"/$1 -type d |xargs chmod $2 || Fdie
+       find "$Fdestdir"/$1 -type d -print0 |xargs -0 chmod $2 || Fdie
}

###
@@ -473,7 +473,7 @@ Fdirschmod() {
###
Ffileschmod() {
Fmessage "Changing file permissions inside: $1"
-        find "$Fdestdir"/$1 -type f |xargs chmod $2 || Fdie
+        find "$Fdestdir"/$1 -type f -print0 |xargs -0 chmod $2 || Fdie
}

###
@@ -482,7 +482,7 @@ Ffileschmod() {
###
Fdirschown() {
Fmessage "Changing the owner of directories inside: $1"
-       find "$Fdestdir"/$1 -type d |xargs chown $2:$3 || Fdie
+       find "$Fdestdir"/$1 -type d -print0 |xargs -0 chown $2:$3 || Fdie
}

###
@@ -491,7 +491,7 @@ Fdirschown() {
###
Ffileschown() {
Fmessage "Changing the owner of files inside: $1"
-       find "$Fdestdir"/$1 -type f |xargs chown $2:$3 || Fdie
+       find "$Fdestdir"/$1 -type f -print0 |xargs -0 chown $2:$3 || Fdie
}

###
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to