Code

debian/patches: Removed bts496847-error-handling.
authorSebastian Harl <sh@tokkee.org>
Sat, 20 Dec 2008 13:39:23 +0000 (14:39 +0100)
committerSebastian Harl <sh@tokkee.org>
Sat, 20 Dec 2008 13:58:49 +0000 (14:58 +0100)
This patch is now included upstream.

debian/changelog
debian/patches/bts496847-error-handling [deleted file]
debian/patches/series

index 69d3f5ce0bf2768b9d2b1a95320dcc14cb6f20db..b2a309fc4547865bf18f916a9406de8fc6969124 100644 (file)
@@ -6,8 +6,9 @@ rrdtool (1.3.5-1) unstable; urgency=low
       version of rrdtool; use rrd_free2() instead of rrd_free() to not leak
       memory.
     - Removed bts493553-pango-utf-8 - included upstream.
+    - Removed bts496847-error-handling - included upstream.
 
- -- Sebastian Harl <sh@tokkee.org>  Sat, 20 Dec 2008 14:36:01 +0100
+ -- Sebastian Harl <sh@tokkee.org>  Sat, 20 Dec 2008 14:39:01 +0100
 
 rrdtool (1.3.1-4) unstable; urgency=high
 
diff --git a/debian/patches/bts496847-error-handling b/debian/patches/bts496847-error-handling
deleted file mode 100644 (file)
index 34fc0c2..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-diff a/src/rrd_tool.c b/src/rrd_tool.c
---- a/src/rrd_tool.c
-+++ b/src/rrd_tool.c
-@@ -424,11 +424,8 @@ int main(
-                    == 0) {
- #ifdef HAVE_CHROOT
--                chroot(argv[2]);
--                if (errno != 0) {
--                    fprintf(stderr,
--                            "ERROR: can't change root to '%s' errno=%d\n",
--                            argv[2], errno);
-+                if (chroot(argv[2]) != 0){
-+                    fprintf(stderr, "ERROR: chroot %s: %s\n", argv[2],rrd_strerror(errno));
-                     exit(errno);
-                 }
-                 ChangeRoot = 1;
-@@ -444,9 +441,8 @@ int main(
-             }
-         }
-         if (strcmp(firstdir, "")) {
--            chdir(firstdir);
--            if (errno != 0) {
--                fprintf(stderr, "ERROR: %s\n", rrd_strerror(errno));
-+            if (chdir(firstdir) != 0){
-+                fprintf(stderr, "ERROR: chdir %s %s\n", firstdir,rrd_strerror(errno));
-                 exit(errno);
-             }
-         }
-@@ -520,7 +516,6 @@ int HandleInputLine(
-     /* Reset errno to 0 before we start.
-      */
--    errno = 0;
-     if (RemoteMode) {
-         if (argc > 1 && strcmp("quit", argv[1]) == 0) {
-             if (argc > 2) {
-@@ -543,9 +538,8 @@ int HandleInputLine(
-                 return (1);
-             }
- #endif
--            chdir(argv[2]);
--            if (errno != 0) {
--                printf("ERROR: %s\n", rrd_strerror(errno));
-+            if (chdir(argv[2]) != 0){
-+                printf("ERROR: chdir %s %s\n", argv[2], rrd_strerror(errno));
-                 return (1);
-             }
-             return (0);
-@@ -557,7 +551,7 @@ int HandleInputLine(
-             }
-             cwd = getcwd(NULL, MAXPATH);
-             if (cwd == NULL) {
--                printf("ERROR: %s\n", rrd_strerror(errno));
-+                printf("ERROR: getcwd %s\n", rrd_strerror(errno));
-                 return (1);
-             }
-             printf("%s\n", cwd);
-@@ -577,9 +571,8 @@ int HandleInputLine(
-                 return (1);
-             }
- #endif
--            mkdir(argv[2], 0777);
--            if (errno != 0) {
--                printf("ERROR: %s\n", rrd_strerror(errno));
-+            if(mkdir(argv[2], 0777)!=0){
-+                printf("ERROR: mkdir %s: %s\n", argv[2],rrd_strerror(errno));
-                 return (1);
-             }
-             return (0);
-@@ -607,7 +600,7 @@ int HandleInputLine(
-                 }
-                 closedir(curdir);
-             } else {
--                printf("ERROR: %s\n", rrd_strerror(errno));
-+                printf("ERROR: opendir .: %s\n", rrd_strerror(errno));
-                 return (errno);
-             }
-             return (0);
index 7c87e23f80047bab5aaeeb087c97ea1e0c0d4146..c64c5b1df847dbe82f33eec4c4e08e16d49251e2 100644 (file)
@@ -5,6 +5,5 @@ no-rpath-for-perl
 implicit-decl-fix
 bts499350-data-corruption
 bts498183-segfault-madvise
-bts496847-error-handling
 bts499349-memleaks
 typo-ruby