Package: pdfcube Version: 0.0.2-3+b3 Severity: normal Tags: patch
pdfcube gives a weird error message when no command-line options is specified. $ pdfcube usage: pdfcube file_uri [cube_page ...]: Resource temporarily unavailable That's because it's calling 'perror' when it's not necessary. diff -u pdfcube-0.0.2/src/pdfcube.cc pdfcube-0.0.2-/src/pdfcube.cc --- pdfcube-0.0.2/src/pdfcube.cc 2006-12-20 06:50:47.000000000 +0900 +++ pdfcube-0.0.2-/src/pdfcube.cc 2008-12-05 22:04:09.594005662 +0900 @@ -1485,7 +1485,7 @@ if(argc < 2) { - perror("usage: pdfcube file_uri [cube_page ...]"); + fprintf(stderr, "usage: pdfcube file_uri [cube_page ...]\n"); exit(1); } gchar *absoluteFileName = get_absolute_file_name (argv[1]); -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP) (ignored: LC_ALL set to ja_JP.eucJP) Shell: /bin/sh linked to /bin/bash Versions of packages pdfcube depends on: ii freeglut3 2.4.0-6.1 OpenGL Utility Toolkit ii libatk1.0-0 1.22.0-1 The ATK accessibility toolkit ii libc6 2.7-16 GNU C Library: Shared libraries ii libcairo2 1.6.4-6.1 The Cairo 2D vector graphics libra ii libgcc1 1:4.3.2-1 GCC support library ii libgl1-mesa-glx [libgl1] 7.0.3-6 A free implementation of the OpenG ii libglib2.0-0 2.16.6-1 The GLib library of C routines ii libglu1-mesa [libglu1] 7.0.3-6 The OpenGL utility library (GLU) ii libgtk2.0-0 2.12.11-4 The GTK+ graphical user interface ii libgtkglext1 1.2.0-1 OpenGL Extension to GTK+ (shared l ii libice6 2:1.0.4-1 X11 Inter-Client Exchange library ii libpango1.0-0 1.20.5-3 Layout and rendering of internatio ii libpoppler-glib3 0.8.7-1 PDF rendering library (GLib-based ii libpoppler3 0.8.7-1 PDF rendering library ii libsm6 2:1.0.3-2 X11 Session Management library ii libstdc++6 4.3.2-1 The GNU Standard C++ Library v3 ii libx11-6 2:1.1.5-2 X11 client-side library ii libxmu6 2:1.0.4-1 X11 miscellaneous utility library ii libxt6 1:1.0.5-3 X11 toolkit intrinsics library pdfcube recommends no packages. pdfcube suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]