]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Return success if "dironly" flag is being manipulated.
authorTim Kientzle <kientzle@gmail.com>
Sun, 29 Mar 2009 03:22:58 +0000 (23:22 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 29 Mar 2009 03:22:58 +0000 (23:22 -0400)
SVN-Revision: 867

libarchive/archive_write_set_format_mtree.c

index 369209875ea3809ca043902b7e5df14f6eb1c342..22e4c56d9fb9cd22436f643271538d53ae389481 100644 (file)
@@ -962,8 +962,10 @@ archive_write_mtree_options(struct archive_write *a, const char *key,
        case 'd':
                if (strcmp(key, "device") == 0)
                        keybit = F_DEV;
-               else if (strcmp(key, "dironly") == 0)
+               else if (strcmp(key, "dironly") == 0) {
                        mtree->dironly = (value != NULL)? 1: 0;
+                       return (ARCHIVE_OK);
+               }
                break;
        case 'f':
                if (strcmp(key, "flags") == 0)