* [PATCH] mkfs.ubifs: Fix --squash-rino-perm / --nosquash-rino-perm
@ 2010-09-23 22:58 Kevin Cernekee
2010-09-24 8:51 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Kevin Cernekee @ 2010-09-23 22:58 UTC (permalink / raw)
To: dedekind1; +Cc: linux-mtd
This addresses a couple of issues:
1) Code was only allowing these options if --root was NOT specified (the
opposite of the documented usage)
2) -q / -Q short options did not work
3) Spacing fixes in the error/warning strings
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
---
mkfs.ubifs/mkfs.ubifs.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/mkfs.ubifs/mkfs.ubifs.c b/mkfs.ubifs/mkfs.ubifs.c
index ec38f0e..d83f6bd 100644
--- a/mkfs.ubifs/mkfs.ubifs.c
+++ b/mkfs.ubifs/mkfs.ubifs.c
@@ -132,7 +132,7 @@ static struct inum_mapping **hash_table;
/* Inode creation sequence number */
static unsigned long long creat_sqnum;
-static const char *optstring = "d:r:m:o:D:h?vVe:c:g:f:P:k:x:X:j:R:l:j:U";
+static const char *optstring = "d:r:m:o:D:h?vVe:c:g:f:P:k:x:X:j:R:l:j:UQq";
static const struct option longopts[] = {
{"root", 1, NULL, 'r'},
@@ -698,8 +698,8 @@ static int get_options(int argc, char**argv)
return err_msg("Maximum count of LEBs was not specified "
"(use -h for help)");
- if (squash_rino_perm != -1 && root)
- return err_msg("--squash-rino-perm and nosquash-rino-perm options"
+ if (squash_rino_perm != -1 && !root)
+ return err_msg("--squash-rino-perm and nosquash-rino-perm options "
"can be used only with the --root option");
if (c->max_bud_bytes == -1) {
@@ -1673,7 +1673,7 @@ static int write_data(void)
if (squash_rino_perm == -1) {
printf("WARNING: setting root UBIFS inode UID=GID=0 (root) and permissions "
"to u+rwx,go+rx; use --squash-rino-perm or --nosquash-rino-perm "
- "to suppress this warning");
+ "to suppress this warning\n");
squash_rino_perm = 1;
}
if (squash_rino_perm) {
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] mkfs.ubifs: Fix --squash-rino-perm / --nosquash-rino-perm
2010-09-23 22:58 [PATCH] mkfs.ubifs: Fix --squash-rino-perm / --nosquash-rino-perm Kevin Cernekee
@ 2010-09-24 8:51 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2010-09-24 8:51 UTC (permalink / raw)
To: Kevin Cernekee; +Cc: linux-mtd
On Thu, 2010-09-23 at 15:58 -0700, Kevin Cernekee wrote:
> This addresses a couple of issues:
>
> 1) Code was only allowing these options if --root was NOT specified (the
> opposite of the documented usage)
>
> 2) -q / -Q short options did not work
>
> 3) Spacing fixes in the error/warning strings
>
> Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
> ---
> mkfs.ubifs/mkfs.ubifs.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
Oh, yeah, thanks, pushed!
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-24 8:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-23 22:58 [PATCH] mkfs.ubifs: Fix --squash-rino-perm / --nosquash-rino-perm Kevin Cernekee
2010-09-24 8:51 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).