pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/udfclient - fix printing file sizes >= 2GB
details: https://anonhg.NetBSD.org/pkgsrc/rev/e9dd7e48b6ef
branches: trunk
changeset: 478052:e9dd7e48b6ef
user: mrg <mrg%pkgsrc.org@localhost>
date: Thu Jul 15 13:27:48 2004 +0000
description:
- fix printing file sizes >= 2GB
- add "exit" support
diffstat:
misc/udfclient/distinfo | 3 ++-
misc/udfclient/patches/patch-aa | 36 ++++++++++++++++++++++++++++++++++++
2 files changed, 38 insertions(+), 1 deletions(-)
diffs (50 lines):
diff -r 893add33d982 -r e9dd7e48b6ef misc/udfclient/distinfo
--- a/misc/udfclient/distinfo Thu Jul 15 11:57:26 2004 +0000
+++ b/misc/udfclient/distinfo Thu Jul 15 13:27:48 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.7 2004/02/23 00:44:36 reinoud Exp $
+$NetBSD: distinfo,v 1.8 2004/07/15 13:27:48 mrg Exp $
SHA1 (UDFclient.0.2.tgz) = f857c3193d138e62452afde13ab88bee3a750a54
Size (UDFclient.0.2.tgz) = 78629 bytes
+SHA1 (patch-aa) = b445a8e771879cb64f9301f2f89c2297049da8dc
diff -r 893add33d982 -r e9dd7e48b6ef misc/udfclient/patches/patch-aa
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/misc/udfclient/patches/patch-aa Thu Jul 15 13:27:48 2004 +0000
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.5 2004/07/15 13:27:48 mrg Exp $
+
+- fix print when file sizes >= 2GB
+- add "exit" and "^D" support
+
+--- udfclient.c.orig 2004-02-23 11:10:49.000000000 +1100
++++ udfclient.c 2004-07-05 19:33:11.000000000 +1000
+@@ -520,7 +520,7 @@ void udfclient_getsubtree(struct udf_mou
+ } else {
+ printf("\r...%-47s ", name+strlen(name)-47);
+ };
+- printf("%10d / %10d bytes ", (uint32_t) data_pos, (uint32_t) file_data_total_len);
++ printf("%10llu / %10llu bytes ", (unsigned long long) data_pos, (unsigned long long) file_data_total_len);
+ if (file_data_total_len) printf("(%3d%%) ", (int) (100.0*(float) data_pos / file_data_total_len));
+ printf("successfully");
+ fflush(stdout);
+@@ -575,6 +575,9 @@ void udfclient_interact(void) {
+ *line = 0;
+ fgets(line, 4096, stdin);
+
++ if (*line == 0 && feof(stdin))
++ return;
++
+ *cmd = *arg1 = *arg2 = *arg3 = 0;
+ args = sscanf(line, "%s %s %s %s", cmd, arg1, arg2, arg3);
+ if (args) {
+@@ -611,7 +614,8 @@ void udfclient_interact(void) {
+ );
+ continue;
+ };
+- if (strcmp(cmd, "quit")==0) {
++ if (strcmp(cmd, "quit")==0 ||
++ strcmp(cmd, "exit")==0) {
+ return;
+ };
+ printf("\nUnknown command %s\n", cmd);
Home |
Main Index |
Thread Index |
Old Index