summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2010-03-10 10:33:17 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2010-03-10 10:40:47 (GMT)
commitc9c332a2079892e60e292e8accb921f1d2603090 (patch) (side-by-side diff)
tree804c66526e8cc790e4abd6b7d1faac280c0f5b07
parent5864f3267f4c1c002a5f405477c113a093f3b5bd (diff)
downloadcpio-c9c332a2079892e60e292e8accb921f1d2603090.tar.gz
cpio-c9c332a2079892e60e292e8accb921f1d2603090.tar.bz2
Bugfixes.
* src/main.c (cpio_options): Remove unused options. * src/util.c (cpio_create_dir): Fix conditional. * NEWS: Update.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/main.c7
-rw-r--r--src/util.c2
2 files changed, 2 insertions, 7 deletions
diff --git a/src/main.c b/src/main.c
index a805a5b..ba1b969 100644
--- a/src/main.c
+++ b/src/main.c
@@ -57,12 +57,7 @@ enum cpio_options {
FORCE_LOCAL_OPTION,
DEBUG_OPTION,
BLOCK_SIZE_OPTION,
- TO_STDOUT_OPTION,
-
- HANG_OPTION,
- USAGE_OPTION,
- LICENSE_OPTION,
- VERSION_OPTION
+ TO_STDOUT_OPTION
};
const char *program_authors[] =
diff --git a/src/util.c b/src/util.c
index ae6a3de..00953d5 100644
--- a/src/util.c
+++ b/src/util.c
@@ -1613,7 +1613,7 @@ cpio_create_dir (struct cpio_file_stat *file_hdr, int existing_dir)
}
}
- if (!setstat_delayed && repair_delayed_set_stat (file_hdr) == 0)
+ if (!setstat_delayed && repair_delayed_set_stat (file_hdr))
set_perms (-1, file_hdr);
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.