summaryrefslogtreecommitdiff
path: root/src/chroot-tools/librechroot
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-11-12 21:45:39 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-11-12 21:45:39 -0500
commitec88851b92ead25bfdd1e29046c95e7dd4508f3f (patch)
tree565df41583686a2f0682083fc18ada9e2e08fc0a /src/chroot-tools/librechroot
parente5c5ec7c6bf8d0460b870b1dacc5c928326fb81b (diff)
I'm embarrassed; I commited non-working file lock codev20121112.2
Diffstat (limited to 'src/chroot-tools/librechroot')
-rwxr-xr-xsrc/chroot-tools/librechroot6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chroot-tools/librechroot b/src/chroot-tools/librechroot
index 1c9700c..2c952cc 100755
--- a/src/chroot-tools/librechroot
+++ b/src/chroot-tools/librechroot
@@ -34,7 +34,7 @@ lock_open_write() {
# Only reopen the FD if it wasn't handed to us
if [[ $(readlink -f /dev/fd/$fd) != "${path}.lock" ]]; then
- exec $fd>"${path}.lock"
+ eval "exec $fd>${path}.lock"
fi
if ! flock -n $fd; then
@@ -51,7 +51,7 @@ lock_open_read() {
# Only reopen the FD if it wasn't handed to us
if [[ $(readlink -f /dev/fd/$fd) != "${path}.lock" ]]; then
- exec $fd>"${path}.lock"
+ eval "exec $fd>${path}.lock"
fi
if ! flock -sn $fd; then
@@ -63,7 +63,7 @@ lock_open_read() {
lock_close() {
local fd=$1
- exec $fd>&-
+ eval "exec $fd>&-"
}
clean_pacman() {