aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2012-12-08 02:26:56 -0600
committerRob Landley <rob@landley.net>2012-12-08 02:26:56 -0600
commit37de8ed2aac771c118702b2315ccac7e02ecb729 (patch)
tree0ee46cb3882081c4434fe5ade968241989dc77cf /lib
parentdb8eb323b3b8ded0eb75c0872563784ae4356e99 (diff)
downloadtoybox-37de8ed2aac771c118702b2315ccac7e02ecb729.tar.gz
Complicate the rm -i behavior to do what posix specifies.
Diffstat (limited to 'lib')
-rw-r--r--lib/dirtree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/dirtree.c b/lib/dirtree.c
index 33188e1f..c9660fc7 100644
--- a/lib/dirtree.c
+++ b/lib/dirtree.c
@@ -62,6 +62,7 @@ error:
char *path = parent ? dirtree_path(parent, 0) : "";
perror_msg("%s%s%s",path, parent ? "/" : "", name);
}
+ if (parent) parent->symlink = (char *)1;
free(dt);
return 0;
}