From 37de8ed2aac771c118702b2315ccac7e02ecb729 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 8 Dec 2012 02:26:56 -0600 Subject: Complicate the rm -i behavior to do what posix specifies. --- lib/dirtree.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dirtree.c') 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; } -- cgit v1.2.3