Blame SOURCES/quota-4.01-Complete-quotasync-usage.patch

dba0f0
From 9384c1c0f8b64535595c89bb2b1a980538c8be43 Mon Sep 17 00:00:00 2001
dba0f0
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
dba0f0
Date: Wed, 6 Mar 2013 13:10:25 +0100
dba0f0
Subject: [PATCH 2/4] Complete quotasync usage
dba0f0
MIME-Version: 1.0
dba0f0
Content-Type: text/plain; charset=UTF-8
dba0f0
Content-Transfer-Encoding: 8bit
dba0f0
dba0f0
Signed-off-by: Petr Písař <ppisar@redhat.com>
dba0f0
Signed-off-by: Jan Kara <jack@suse.cz>
dba0f0
---
dba0f0
 quotasync.c | 19 +++++++++++++++++--
dba0f0
 1 file changed, 17 insertions(+), 2 deletions(-)
dba0f0
dba0f0
diff --git a/quotasync.c b/quotasync.c
dba0f0
index dd8ade9..cab9015 100644
dba0f0
--- a/quotasync.c
dba0f0
+++ b/quotasync.c
dba0f0
@@ -22,8 +22,23 @@ char *progname;
dba0f0
 
dba0f0
 static void usage(void)
dba0f0
 {
dba0f0
-	errstr(_("Utility for syncing quotas.\nUsage:\n%s [-ug] -a | mntpoint...\n\n"), progname);
dba0f0
-	fprintf(stderr, _("Bugs to %s\n"), MY_EMAIL);
dba0f0
+	printf(_(
dba0f0
+"%1$s: Utility for syncing quotas.\n"
dba0f0
+"Usage: %1$s [-ug] mount-point...\n"
dba0f0
+"   or: %1$s [-ug] -a\n"
dba0f0
+"   or: %1$s -h | -V\n"
dba0f0
+"\n"
dba0f0
+		), progname);
dba0f0
+	printf(_(
dba0f0
+"Options:\n"
dba0f0
+"-u, --user     synchronize user quotas\n"
dba0f0
+"-g, --group    synchronize group quotas\n"
dba0f0
+"-a, --all      synchronize quotas for all mounted file systems\n"
dba0f0
+"-h, --help     display this help message and exit\n"
dba0f0
+"-V, --version  display version information and exit\n"
dba0f0
+"\n"
dba0f0
+		));
dba0f0
+	printf(_("Report bugs to <%s>.\n"), MY_EMAIL);
dba0f0
 	exit(1);
dba0f0
 }
dba0f0
 
dba0f0
-- 
dba0f0
1.8.1.4
dba0f0