summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/btarfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btarfs b/src/btarfs
index bdd44de..a51b2ef 100755
--- a/src/btarfs
+++ b/src/btarfs
@@ -48,7 +48,7 @@ done
48 48
49create() 49create()
50{ 50{
51 TMPFILE=.~."$FILE" 51 TMPFILE=$(dirname "$FILE")/.~.$(basename "$FILE")
52# [ ! -e "$FILE" ] || die "refusing to overwrite '$FILE'" 52# [ ! -e "$FILE" ] || die "refusing to overwrite '$FILE'"
53# [ ! -e "$TMPFILE" ] || die "refusing to overwrite '.~.$FILE'" 53# [ ! -e "$TMPFILE" ] || die "refusing to overwrite '.~.$FILE'"
54 rm -f "$TMPFILE" 54 rm -f "$TMPFILE"