summaryrefslogtreecommitdiff
path: root/yarns/9000-implements.yarn
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-11 18:56:16 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-11 18:56:16 +0100
commitc09778fe5c1fbca31b7dd4cb1a4533fb95e95e06 (patch)
tree3181069468da25c95ada89d204668eca7f743224 /yarns/9000-implements.yarn
parent52916505f5a900a38436e94bb311940dde2f719a (diff)
downloadobnam-c09778fe5c1fbca31b7dd4cb1a4533fb95e95e06.tar.gz
Don't allow backup root to be a symbolic link
Diffstat (limited to 'yarns/9000-implements.yarn')
-rw-r--r--yarns/9000-implements.yarn5
1 files changed, 5 insertions, 0 deletions
diff --git a/yarns/9000-implements.yarn b/yarns/9000-implements.yarn
index 4fb0fc00..b348a34f 100644
--- a/yarns/9000-implements.yarn
+++ b/yarns/9000-implements.yarn
@@ -104,6 +104,11 @@ We need to manipulate extended attributes.
mkdir -p $(dirname "$DATADIR/$MATCH_1")
setfattr --name="$MATCH_2" --value "$MATCH_3" "$DATADIR/$MATCH_1"
+Create a symlink.
+
+ IMPLEMENTS GIVEN a symlink (\S+) pointing at (\S+)
+ ln -s "$MATCH_2" "$DATADIR/$MATCH_1"
+
Sometimes we need to remove a file.
IMPLEMENTS WHEN user (\S+) removes file (\S+)