From a568a90bef9cf3690de8d47dd982d7213d5000a7 Mon Sep 17 00:00:00 2001 From: "Paul S. Ferrell" Date: Wed, 13 Mar 2013 13:28:28 -0600 Subject: [PATCH] Fixed bug in file renaming. version++ --- bin/dns_parse_cron | 3 ++- pkgs/dns_parse.spec | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/dns_parse_cron b/bin/dns_parse_cron index 2b5eeff..a925ec9 100755 --- a/bin/dns_parse_cron +++ b/bin/dns_parse_cron @@ -99,7 +99,8 @@ for network in options['NETWORKS'].split(): "Cmd: %s" % (path, cmd)) if (options['MOVE_DIR']): - new_path = os.path.join(options['MOVE_DIR'], files[i]) + new_path = os.path.join(options['MOVE_DIR'], + files[i].split('/')[-1]) try: os.rename(path, new_path) except Exception, msg: diff --git a/pkgs/dns_parse.spec b/pkgs/dns_parse.spec index 215088e..31e9f24 100644 --- a/pkgs/dns_parse.spec +++ b/pkgs/dns_parse.spec @@ -1,5 +1,5 @@ Name: dns_parse -Version: 2.0.2 +Version: 2.0.4 Release: 4%{?dist} Summary: Converts pcap files of DNS data into something more manageable. Source: dns_parse-%{version}.tar.gz