Source: nn
Version: 6.7.3-14
Severity: normal
Tags: patch

Dear Maintainer,

>From 3be12c5873e833204fc12cb872cb1eb2cf65eb72 Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Wed, 24 Feb 2021 01:33:25 +0000
>Subject: [PATCH] admin.c: fix "else" selection

  Fix an "else" selection and delete diagnostic messages.

  Delete a space at the start of a line, which should be empty.

Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
---
 admin.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/admin.c b/admin.c
index 3029e45..bb33404 100644
--- a/admin.c
+++ b/admin.c
@@ -207,19 +207,16 @@ find_files(group_header * gh)
            return;
        }
        if (db_data_subdirs) {
-           tprintf("admin.c:find_files: printing files in %s with a pager\n", 
db_data_directory);
            sprintf(command, "cd %s ; ls -l [0-9] | %s", db_data_directory, 
pager);
        }
        else {
-           tprintf("admin.c:find_files: printing files in %s with a \
-pager\n", db_data_directory);
            sprintf(command, "ls -l %s | %s", db_data_directory, pager);
-    } else {
-       tprintf("admin.c:find_files: printing file in %s without a \
-pager\n", db_data_path(name, gh, '*'));
+       }
+    }
+    else {
        sprintf(command, "ls -l %s", db_data_path(name, gh, '*'));
     }
-    
+
     system(command);
 }
 
-- 
2.30.0



-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.9-1 (SMP w/2 CPU threads)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

-- debconf information excluded

-- 
Bjarni I. Gislason

Reply via email to