summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fd.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fd.sh b/src/fd.sh
index 345eee6..8bd4584 100644
--- a/src/fd.sh
+++ b/src/fd.sh
@@ -1,6 +1,6 @@
# Functions for opening and closing file descriptors
#
-# Copyright (C) 2013 Patrick "P. J." McDermott
+# Copyright (C) 2013 Patrick McDermott
#
# This file is part of the ProteanOS Development Kit.
#
@@ -42,6 +42,7 @@ fopen()
{
local path="${1}"
local mode="${2}"
+ shift 2
local i=
local fd=
@@ -80,6 +81,7 @@ fopen()
fclose()
{
local fd="${1}"
+ shift 1
# Make sure the file descriptor is open.
if [ "x$(eval echo "\${_fd_${fd}+set}")" != 'xset' ]; then